Skip to content

Commit cdf2e3b

Browse files
committed
XEP-0482: Add the XML Schema
1 parent 36ed26c commit cdf2e3b

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

xep-0482.xml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
<email>[email protected]</email>
3131
<jid>[email protected]</jid>
3232
</author>
33+
<revision>
34+
<version>0.1.1</version>
35+
<date>2025-01-26</date>
36+
<initials>egp</initials>
37+
<remark>
38+
<p>Add the XML Schema.</p>
39+
</remark>
40+
</revision>
3341
<revision>
3442
<version>0.1.0</version>
3543
<date>2023-05-04</date>
@@ -204,4 +212,75 @@
204212
<p>This document requires no interaction with &REGISTRAR;.</p>
205213
</section1>
206214

215+
<section1 topic='XML Schema' anchor='schema'>
216+
<code><![CDATA[<?xml version='1.0' encoding='UTF-8'?>
217+
218+
<xs:schema
219+
xmlns:xs='http://www.w3.org/2001/XMLSchema'
220+
xmlns='urn:xmpp:call-invites:0'
221+
targetNamespace='urn:xmpp:call-invites:0'
222+
elementFormDefault='qualified'>
223+
224+
<xs:annotation>
225+
<xs:documentation>
226+
The protocol documented by this schema is defined in
227+
XEP-0482: https://xmpp.org/extensions/xep-0482.html
228+
</xs:documentation>
229+
</xs:annotation>
230+
231+
<xs:element name='invite'>
232+
<xs:complexType>
233+
<xs:sequence>
234+
<xs:element ref='jingle'/>
235+
<xs:element ref='external' minOccurs='0' maxOccurs='unbounded'/>
236+
</xs:sequence>
237+
<xs:attribute name='audio' type='xs:boolean' use='optional' default='true'/>
238+
<xs:attribute name='video' type='xs:boolean' use='optional' default='false'/>
239+
</xs:complexType>
240+
</xs:element>
241+
242+
<xs:element name='jingle'>
243+
<xs:complexType>
244+
<xs:attribute name='sid' type='xs:string' use='required'/>
245+
<xs:attribute name='jid' type='xs:string' use='optional'/>
246+
</xs:complexType>
247+
</xs:element>
248+
249+
<xs:element name='external'>
250+
<xs:complexType>
251+
<xs:attribute name='uri' type='xs:string' use='required'/>
252+
</xs:complexType>
253+
</xs:element>
254+
255+
<xs:element name='retract'>
256+
<xs:complexType>
257+
<xs:attribute name='id' type='xs:string' use='required'/>
258+
</xs:complexType>
259+
</xs:element>
260+
261+
<xs:element name='accept'>
262+
<xs:complexType>
263+
<xs:choice>
264+
<xs:element ref='jingle'/>
265+
<xs:element ref='external'/>
266+
</xs:choice>
267+
<xs:attribute name='id' type='xs:string' use='required'/>
268+
</xs:complexType>
269+
</xs:element>
270+
271+
<xs:element name='reject'>
272+
<xs:complexType>
273+
<xs:attribute name='id' type='xs:string' use='required'/>
274+
</xs:complexType>
275+
</xs:element>
276+
277+
<xs:element name='left'>
278+
<xs:complexType>
279+
<xs:attribute name='id' type='xs:string' use='required'/>
280+
</xs:complexType>
281+
</xs:element>
282+
283+
</xs:schema>]]></code>
284+
</section1>
285+
207286
</xep>

0 commit comments

Comments
 (0)