-
Notifications
You must be signed in to change notification settings - Fork 7
/
langtrans.xsd
59 lines (52 loc) · 1.89 KB
/
langtrans.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
<?xml version='1.0' encoding='UTF-8'?>
<xs:schema
xmlns='urn:xmpp:langtrans'
xmlns:xml='http://www.w3.org/XML/1998/namespace'
xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace='urn:xmpp:langtrans'
elementFormDefault='qualified'>
<xs:annotation>
<xs:documentation>
The protocol documented by this schema is defined in
XEP-0171: https://xmpp.org/extensions/xep-0171.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='x'>
<xs:complexType>
<xs:sequence>
<xs:element ref='source' minOccurs='1'/>
<xs:element ref='translation' minOccurs='1'/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name='source'>
<xs:complexType>
<xs:simpleContent>
<xs:extension base='xs:string'>
<xs:attribute ref='xml:lang' use='required'/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name='translation'>
<xs:complexType>
<xs:simpleContent>
<xs:extension base='empty'>
<xs:attribute name='charset' type='xs:string' use='optional'/>
<xs:attribute name='source_lang' type='xs:language' use='optional' />
<xs:attribute name='destination_lang' type='xs:string' use='required'/>
<xs:attribute name='dictionary' type='xs:string' use='required'/>
<xs:attribute name='engine' type='xs:string' use='optional' />
<xs:attribute name='reviewed' type='xs:boolean' use='optional' default='false'/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:simpleType name='empty'>
<xs:restriction base='xs:string'>
<xs:enumeration value=''/>
</xs:restriction>
</xs:simpleType>
</xs:schema>