-
Notifications
You must be signed in to change notification settings - Fork 7
/
commands.xsd
103 lines (94 loc) · 3.46 KB
/
commands.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version='1.0' encoding='UTF-8'?>
<xs:schema
xmlns:xs='http://www.w3.org/2001/XMLSchema'
xmlns:xml='http://www.w3.org/XML/1998/namespace'
targetNamespace='http://jabber.org/protocol/commands'
xmlns='http://jabber.org/protocol/commands'
elementFormDefault='qualified'>
<xs:annotation>
<xs:documentation>
The protocol documented by this schema is defined in
XEP-0050: https://xmpp.org/extensions/xep-0050.html
</xs:documentation>
</xs:annotation>
<xs:import namespace='http://www.w3.org/XML/1998/namespace'
schemaLocation='https://www.w3.org/2001/03/xml.xsd'/>
<xs:element name='command'>
<xs:complexType>
<xs:choice>
<xs:element ref='actions' minOccurs='0'/>
<xs:element ref='note' minOccurs='0' maxOccurs='unbounded'/>
<xs:any namespace='##other' minOccurs='0' maxOccurs='unbounded'/>
</xs:choice>
<xs:attribute name='action' use='optional'>
<xs:simpleType>
<xs:restriction base='xs:NCName'>
<xs:enumeration value='execute'/>
<xs:enumeration value='cancel'/>
<xs:enumeration value='prev'/>
<xs:enumeration value='next'/>
<xs:enumeration value='complete'/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name='node' type='xs:string' use='required'/>
<xs:attribute name='sessionid' type='xs:string' use='optional'/>
<xs:attribute name='status' use='optional'>
<xs:simpleType>
<xs:restriction base='xs:NCName'>
<xs:enumeration value='executing'/>
<xs:enumeration value='completed'/>
<xs:enumeration value='canceled'/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute ref='xml:lang' use='optional'/>
</xs:complexType>
</xs:element>
<xs:element name='actions'>
<xs:complexType>
<xs:sequence>
<xs:element name='prev' type='empty' minOccurs='0'/>
<xs:element name='next' type='empty' minOccurs='0'/>
<xs:element name='complete' type='empty' minOccurs='0'/>
</xs:sequence>
<xs:attribute name='type' use='required'>
<xs:simpleType>
<xs:restriction base='xs:NCName'>
<xs:enumeration value='prev'/>
<xs:enumeration value='next'/>
<xs:enumeration value='complete'/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name='note'>
<xs:complexType>
<xs:simpleContent>
<xs:extension base='xs:string'>
<xs:attribute name='type' use='optional'>
<xs:simpleType>
<xs:restriction base='xs:NCName'>
<xs:enumeration value='info'/>
<xs:enumeration value='warn'/>
<xs:enumeration value='error'/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name='bad-action' type='empty'/>
<xs:element name='bad-locale' type='empty'/>
<xs:element name='bad-payload' type='empty'/>
<xs:element name='bad-sessionid' type='empty'/>
<xs:element name='malformed-action' type='empty'/>
<xs:element name='session-expired' type='empty'/>
<xs:simpleType name='empty'>
<xs:restriction base='xs:string'>
<xs:enumeration value=''/>
</xs:restriction>
</xs:simpleType>
</xs:schema>