XEP-0359: Add an XML Schema.

This commit is contained in:
Emmanuel Gil Peyrot 2017-05-04 22:04:56 +01:00 committed by Sam Whited
parent 4176cdc989
commit 171219782e
1 changed files with 29 additions and 1 deletions

View File

@ -179,7 +179,35 @@
</section2>
</section1>
<section1 topic='XML Schema' anchor='schema'>
<p>REQUIRED for protocol specifications.</p>
<code><![CDATA[
<?xml version='1.0' encoding='UTF-8'?>
<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace='urn:xmpp:sid:0'
elementFormDefault='qualified'>
<xs:annotation>
<xs:documentation>
The protocol documented by this schema is defined in
XEP-0359: https://www.xmpp.org/extensions/xep-0359.html
</xs:documentation>
</xs:annotation>
<xs:element name='stanza-id'>
<xs:complexType>
<xs:attribute name='id' type='xs:string' use='required'/>
<xs:attribute name='by' type='xs:string' use='required'/>
</xs:complexType>
</xs:element>
<xs:element name='origin-id'>
<xs:complexType>
<xs:attribute name='id' type='xs:string' use='required'/>
</xs:complexType>
</xs:element>
</xs:schema>]]></code>
</section1>
<section1 topic='Acknowledgements' anchor='ack'>
<p>Thanks to Thijs Alkemade and Georg Lukas for providing feedback.</p>