1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 16:55:07 -05:00
This commit is contained in:
Peter Saint-Andre 2012-06-21 10:42:21 -06:00
parent e3586a88f0
commit 4152b2f323

View File

@ -30,6 +30,12 @@
<jid>binary@jrudevels.org</jid> <jid>binary@jrudevels.org</jid>
<uri>http://jrudevels.org/</uri> <uri>http://jrudevels.org/</uri>
</author> </author>
<revision>
<version>0.0.2</version>
<date>2012-06-21</date>
<initials>snd</initials>
<remark><p>Root element name changed to "wrapper"; xmlns fixed in the XML-schema.</p></remark>
</revision>
<revision> <revision>
<version>0.0.1</version> <version>0.0.1</version>
<date>2012-06-13</date> <date>2012-06-13</date>
@ -43,10 +49,10 @@
</section1> </section1>
<section1 topic='Media Element' anchor='media'> <section1 topic='Media Element' anchor='media'>
<p>The root element for XML-data is &lt;xml/&gt;. This element MUST be qualified by the "urn:xmpp:xml-element" namespace. The &lt;xml/&gt; element MUST be contained within a &lt;field/&gt; element qualified by the 'jabber:x:data' namespace.</p> <p>The root element for XML-data is &lt;wrapper/&gt;. This element MUST be qualified by the "urn:xmpp:xml-element" namespace. The &lt;wrapper/&gt; element MUST be contained within a &lt;field/&gt; element qualified by the 'jabber:x:data' namespace.</p>
<p>The &lt;xml/&gt; element SHOULD contain an XML-data which needs to be represented in a form.</p> <p>The &lt;wrapper/&gt; element SHOULD contain an XML-data which needs to be represented in a form.</p>
<example caption='PubSub Blog Node Metadata'><![CDATA[ <example caption='PubSub Blog Node Metadata'><![CDATA[
<xml xmlns='urn:xmpp:xml-element'> <wrapper xmlns='urn:xmpp:xml-element'>
<feed xmlns='http://www.w3.org/2005/Atom'> <feed xmlns='http://www.w3.org/2005/Atom'>
<title>Romeo&amp;apos;s Microblog</title> <title>Romeo&amp;apos;s Microblog</title>
<id>tag:montague.lit,2008:home</id> <id>tag:montague.lit,2008:home</id>
@ -56,13 +62,13 @@
<uri>xmpp:romeo@montague.lit</uri> <uri>xmpp:romeo@montague.lit</uri>
</author> </author>
</feed> </feed>
</xml> </wrapper>
]]></example> ]]></example>
<example caption='Inclusion in Data Form'><![CDATA[ <example caption='Inclusion in Data Form'><![CDATA[
<x xmlns='jabber:x:data' type='form'> <x xmlns='jabber:x:data' type='form'>
[ ... ] [ ... ]
<field var='xml-metadata' type='hidden'> <field var='xml-metadata' type='hidden'>
<xml xmlns='urn:xmpp:xml-element'> <wrapper xmlns='urn:xmpp:xml-element'>
<feed xmlns='http://www.w3.org/2005/Atom'> <feed xmlns='http://www.w3.org/2005/Atom'>
<title>Romeo&amp;apos;s Microblog</title> <title>Romeo&amp;apos;s Microblog</title>
<id>tag:montague.lit,2008:home</id> <id>tag:montague.lit,2008:home</id>
@ -72,7 +78,7 @@
<uri>xmpp:romeo@montague.lit</uri> <uri>xmpp:romeo@montague.lit</uri>
</author> </author>
</feed> </feed>
</xml> </wrapper>
</field> </field>
[ ... ] [ ... ]
</x> </x>
@ -100,8 +106,8 @@
<xs:schema <xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace='urn:xmpp:media-element' targetNamespace='urn:xmpp:xml-element'
xmlns='urn:xmpp:media-element' xmlns='urn:xmpp:xml-element'
elementFormDefault='qualified'> elementFormDefault='qualified'>
<xs:annotation> <xs:annotation>
@ -111,7 +117,7 @@
</xs:documentation> </xs:documentation>
</xs:annotation> </xs:annotation>
<xs:element name='xml'> <xs:element name='wrapper'>
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:any minOccurs='0' maxOccurs='unbounded'/> <xs:any minOccurs='0' maxOccurs='unbounded'/>