Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XEP-0386: Add an XML Schema #1356

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 66 additions & 3 deletions xep-0386.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
<shortname>bind2</shortname>
&ksmithisode;
&mwild;
<revision>
<version>1.0.1</version>
<date>2024-07-02</date>
<initials>egp</initials>
<remark><p>Add an XML Schema.</p></remark>
</revision>
<revision>
<version>1.0.0</version>
<date>2024-04-04</date>
Expand Down Expand Up @@ -195,9 +201,66 @@
<section1 topic='XMPP Registrar Considerations' anchor='registrar'>
<p>The urn:xmpp:bind:0 namespace must be registered..</p>
</section1>
<!--<section1 topic='XML Schema' anchor='schema'>
<p>REQUIRED for protocol specifications.</p>
</section1>-->
<section1 topic='XML Schema' anchor='schema'>
<code><![CDATA[
<?xml version='1.0' encoding='UTF-8'?>

<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
xmlns:mam='urn:xmpp:mam:2'
xmlns='urn:xmpp:bind:0'
targetNamespace='urn:xmpp:bind:0'
elementFormDefault='qualified'>

<xs:annotation>
<xs:documentation>
The protocol documented by this schema is defined in
XEP-0386: https://xmpp.org/extensions/xep-0386.html
</xs:documentation>
</xs:annotation>

<xs:import namespace='urn:xmpp:mam:2'
schemaLocation='xep-0313.xsd'/>

<xs:element name='bind'>
<xs:complexType>
<xs:choice>
<xs:element ref='inline'/>
<xs:sequence>
<xs:element ref='tag' minOccurs='0'/>
<xs:any namespace='##other' minOccurs='0' maxOccurs='unbounded' processContents='lax'/>
</xs:sequence>
</xs:choice>
</xs:complexType>
</xs:element>

<xs:element name='inline'>
<xs:complexType>
<xs:sequence>
<xs:element ref='feature' maxOccurs='unbounded'/>
</xs:sequence>
</xs:complexType>
</xs:element>

<xs:element name='feature'>
<xs:complexType>
<xs:attribute name='var' type='xs:string'/>
</xs:complexType>
</xs:element>

<xs:element name='tag' type='xs:string'/>

<xs:element name='bound'>
<xs:complexType>
<xs:sequence>
<xs:element ref='mam:metadata' minOccurs='0'/>
</xs:sequence>
</xs:complexType>
</xs:element>

</xs:schema>
]]></code>
</section1>
<section1 topic='Acknowledgements' anchor='acknowledgements'>
<p>Thanks to Daniel Gultsch, Philipp Hörist, Thilo Molitor and Andrzej Wójcik for their valuable support with feedback, suggestions and implementations.</p>
</section1>
Expand Down