Skip to content

Commit

Permalink
XEP-0482: Add the XML Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
linkmauve committed Jan 26, 2025
1 parent 36ed26c commit ffd5353
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions xep-0482.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@
<email>[email protected]</email>
<jid>[email protected]</jid>
</author>
<revision>
<version>0.1.1</version>
<date>2025-01-26</date>
<initials>egp</initials>
<remark>
<p>Add the XML Schema.</p>
</remark>
</revision>
<revision>
<version>0.1.0</version>
<date>2023-05-04</date>
Expand Down Expand Up @@ -204,4 +212,74 @@
<p>This document requires no interaction with &REGISTRAR;.</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:sid='urn:xmpp:sid:0'
xmlns='urn:xmpp:call-invites:0'
targetNamespace='urn:xmpp:call-invites:0'
elementFormDefault='qualified'>
<xs:annotation>
<xs:documentation>
The protocol documented by this schema is defined in
XEP-0482: https://xmpp.org/extensions/xep-0482.html
</xs:documentation>
</xs:annotation>
<xs:element name='invite'>
<xs:complexType>
<xs:sequence>
<xs:element ref='jingle'/>
<xs:element ref='external' minOccurs='0' maxOccurs='unbounded'/>
</xs:sequence>
<xs:attribute name='video' type='xs:boolean' use='optional'/>
</xs:complexType>
</xs:element>
<xs:element name='jingle'>
<xs:complexType>
<xs:attribute name='sid' type='xs:string' use='required'/>
<xs:attribute name='jid' type='xs:string' use='optional'/>
</xs:complexType>
</xs:element>
<xs:element name='external'>
<xs:complexType>
<xs:attribute name='uri' type='xs:string' use='required'/>
</xs:complexType>
</xs:element>
<xs:element name='retract'>
<xs:complexType>
<xs:attribute name='id' type='xs:string' use='required'/>
</xs:complexType>
</xs:element>
<xs:element name='accept'>
<xs:complexType>
<xs:sequence>
<xs:element ref='jingle'/>
</xs:sequence>
<xs:attribute name='id' type='xs:string' use='required'/>
</xs:complexType>
</xs:element>
<xs:element name='reject'>
<xs:complexType>
<xs:attribute name='id' type='xs:string' use='required'/>
</xs:complexType>
</xs:element>
<xs:element name='left'>
<xs:complexType>
<xs:attribute name='id' type='xs:string' use='required'/>
</xs:complexType>
</xs:element>
</xs:schema>]]></code>
</section1>

</xep>

0 comments on commit ffd5353

Please sign in to comment.