-
Notifications
You must be signed in to change notification settings - Fork 20
/
cda_l10n.xsd
135 lines (135 loc) · 6.2 KB
/
cda_l10n.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="translations">
<xs:complexType>
<xs:sequence>
<xs:element name="languageList">
<xs:complexType>
<xs:sequence>
<xs:element name="language" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:sequence/>
<xs:attribute name="description" type="xs:string" use="required"/>
<xs:attribute name="lang" type="LanguageCodeSimple" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="translation" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="comment" type="xs:string"/>
<xs:element name="value" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:sequence/>
<xs:attribute name="lang" type="LanguageCodeSimple" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="key" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="uniqueKey">
<xs:selector xpath="translation"/>
<xs:field xpath="@key"/>
</xs:unique>
</xs:element>
<xs:simpleType name="LanguageCodeSimple">
<xs:annotation>
<xs:documentation xml:lang="en-US">Allows both a choice out of the list of selected languages or a language patterend ll-cc</xs:documentation>
</xs:annotation>
<xs:union memberTypes="LanguageCodeEnum LanguageCodePatternSimple"/>
</xs:simpleType>
<xs:simpleType name="LanguageCodeEnum">
<xs:annotation>
<xs:documentation xml:lang="en-US">A list of some selected languages</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:language">
<xs:enumeration value="en-us">
<xs:annotation>
<xs:documentation xml:lang="en-US">English in the USA</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="en-gb">
<xs:annotation>
<xs:documentation xml:lang="en-US">English in the UK</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="de-de">
<xs:annotation>
<xs:documentation xml:lang="en-US">German in Germany</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="de-ch">
<xs:annotation>
<xs:documentation xml:lang="en-US">German in Switserland</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="de-it">
<xs:annotation>
<xs:documentation xml:lang="en-US">German in Italy</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="es-es">
<xs:annotation>
<xs:documentation xml:lang="en-US">Spanish in Spain</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="fr-be">
<xs:annotation>
<xs:documentation xml:lang="en-US">French in Belgium</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="fr-ch">
<xs:annotation>
<xs:documentation xml:lang="en-US">French in Switzerland</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="fr-fr">
<xs:annotation>
<xs:documentation xml:lang="en-US">French in France</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="it-it">
<xs:annotation>
<xs:documentation xml:lang="en-US">Italian in Italy</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="it-ch">
<xs:annotation>
<xs:documentation xml:lang="en-US">Italian in Switzerland</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="nl-be">
<xs:annotation>
<xs:documentation xml:lang="en-US">Dutch in Belgium</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="nl-nl">
<xs:annotation>
<xs:documentation xml:lang="en-US">Dutch in the Netherlands</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="pt-br">
<xs:annotation>
<xs:documentation xml:lang="en-US">Portuguese in Brazil</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="LanguageCodePatternSimple">
<xs:annotation>
<xs:documentation xml:lang="en-US">A pattern for languages ll(-cc), so where country/region is optional</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:language">
<xs:pattern value="[a-z]+(-[a-z]+)?">
<xs:annotation>
<xs:documentation xml:lang="en-US">other</xs:documentation>
</xs:annotation>
</xs:pattern>
</xs:restriction>
</xs:simpleType>
</xs:schema>