1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-28 04:02:20 -05:00

XEP-0294 v0.2 -- Added XML Schema; Updated based on last call feedback

This commit is contained in:
Matthew A. Miller 2015-03-25 11:08:46 -05:00
parent 5bb546a468
commit e46ad7b3f4

62
xep-0294.xml Executable file → Normal file
View File

@ -28,6 +28,12 @@
<jid>olivier.crete@collabora.co.uk</jid>
</author>
<discuss>jingle</discuss>
<revision>
<version>0.2</version>
<date>2015-03-25</date>
<initials>ph</initials>
<remark><p>Added XML Schema; Updated based on last call feedback.</p></remark>
</revision>
<revision>
<version>0.1</version>
<date>2011-03-24</date>
@ -93,8 +99,7 @@
<p>Any type of RTP Header Extension that requires extra
parameters in the a=b form can embed &lt;parameter/&gt; elements to
describe it. Any other form of parameter can be stored in the CDATA
inside the &lt;rtp-hdrext/&gt; element.</p>
describe it. Any other form of parameter can be stored as the 'key' attribute in a parameter element with an empty value.</p>
</section1>
@ -250,7 +255,58 @@ a=extmap:3 URI-frametype
</section2>
</section1>
<section1 topic='XML Schemas'>
<p>TODO: Write actual schema</p>
<code><![CDATA[
<?xml version='1.0' encoding='UTF-8'?>
<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace='urn:xmpp:jingle:apps:rtp:rtp-hdrext:0'
xmlns='urn:xmpp:jingle:apps:rtp:rtp-hdrext:0'
elementFormDefault='qualified'>
<xs:annotation>
<xs:documentation>
The protocol documented by this schema is defined in
XEP-0294: http://www.xmpp.org/extensions/xep-0294.html
</xs:documentation>
</xs:annotation>
<xs:element name='rtp-hdrext'>
<xs:complexType>
<xs:sequence>
<xs:element name='parameter'
type='parameterElementType'
minOccurs='0'
maxOccurs='unbounded'/>
</xs:sequence>
<xs:attribute name='id' type='xs:unsignedInt' use='required'/>
<xs:attribute name='uri' type='xs:string' use='required'/>
<xs:attribute name='senders'
use='optional'
default='both'>
<xs:simpleType>
<xs:restriction base='xs:NCName'>
<xs:enumeration value='both'/>
<xs:enumeration value='initiator'/>
<xs:enumeration value='none'/>
<xs:enumeration value='responder'/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:complexType name='parameterElementType'>
<xs:simpleContent>
<xs:extension base='empty'>
<xs:attribute name='name' type='xs:string' use='required'/>
<xs:attribute name='value' type='xs:string' use='optional'/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>
]]></code>
</section1>
<section1 topic='Acknowledgements' anchor='ack'>
<p>Thanks to Youness Alaoui for his feedback.</p>