Skip to content

Commit 3016485

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

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

xep-0482.xml

Lines changed: 80 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,76 @@
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:sid='urn:xmpp:sid:0'
221+
xmlns='urn:xmpp:call-invites:0'
222+
targetNamespace='urn:xmpp:call-invites:0'
223+
elementFormDefault='qualified'>
224+
225+
<xs:annotation>
226+
<xs:documentation>
227+
The protocol documented by this schema is defined in
228+
XEP-0482: https://xmpp.org/extensions/xep-0482.html
229+
</xs:documentation>
230+
</xs:annotation>
231+
232+
<xs:element name='invite'>
233+
<xs:complexType>
234+
<xs:sequence>
235+
<xs:element ref='jingle'/>
236+
<xs:element ref='external' minOccurs='0' maxOccurs='unbounded'/>
237+
</xs:sequence>
238+
<xs:attribute name='audio' type='xs:boolean' use='optional'/>
239+
<xs:attribute name='video' type='xs:boolean' use='optional'/>
240+
</xs:complexType>
241+
</xs:element>
242+
243+
<xs:element name='jingle'>
244+
<xs:complexType>
245+
<xs:attribute name='sid' type='xs:string' use='required'/>
246+
<xs:attribute name='jid' type='xs:string' use='optional'/>
247+
</xs:complexType>
248+
</xs:element>
249+
250+
<xs:element name='external'>
251+
<xs:complexType>
252+
<xs:attribute name='uri' type='xs:string' use='required'/>
253+
</xs:complexType>
254+
</xs:element>
255+
256+
<xs:element name='retract'>
257+
<xs:complexType>
258+
<xs:attribute name='id' type='xs:string' use='required'/>
259+
</xs:complexType>
260+
</xs:element>
261+
262+
<xs:element name='accept'>
263+
<xs:complexType>
264+
<xs:choice>
265+
<xs:element ref='jingle'/>
266+
<xs:element ref='external'/>
267+
</xs:choice>
268+
<xs:attribute name='id' type='xs:string' use='required'/>
269+
</xs:complexType>
270+
</xs:element>
271+
272+
<xs:element name='reject'>
273+
<xs:complexType>
274+
<xs:attribute name='id' type='xs:string' use='required'/>
275+
</xs:complexType>
276+
</xs:element>
277+
278+
<xs:element name='left'>
279+
<xs:complexType>
280+
<xs:attribute name='id' type='xs:string' use='required'/>
281+
</xs:complexType>
282+
</xs:element>
283+
284+
</xs:schema>]]></code>
285+
</section1>
286+
207287
</xep>

0 commit comments

Comments
 (0)