1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://josm.openstreetmap.de/tagging-preset-1.0"
|
---|
3 | xmlns:tns="http://josm.openstreetmap.de/tagging-preset-1.0"
|
---|
4 | elementFormDefault="qualified">
|
---|
5 |
|
---|
6 | <!-- Localized attributes (for example de.description are not supported
|
---|
7 | by xsd, so every element needs <anyAttribute/> To cover at least some common
|
---|
8 | errors, elements have specified prohibited attributes -->
|
---|
9 |
|
---|
10 | <element name="annotations" type="tns:root" />
|
---|
11 | <element name="presets" type="tns:root" />
|
---|
12 |
|
---|
13 | <complexType name="root">
|
---|
14 | <complexContent>
|
---|
15 | <extension base="tns:group-parent">
|
---|
16 | <attribute name="author" type="string" />
|
---|
17 | <attribute name="version" type="string" />
|
---|
18 | <attribute name="shortdescription" type="string" />
|
---|
19 | <attribute name="description" type="string" />
|
---|
20 | <attribute name="link" type="string" />
|
---|
21 |
|
---|
22 | <anyAttribute processContents="skip" />
|
---|
23 | </extension>
|
---|
24 | </complexContent>
|
---|
25 | </complexType>
|
---|
26 |
|
---|
27 | <complexType name="group-parent">
|
---|
28 | <sequence>
|
---|
29 | <choice minOccurs="1" maxOccurs="unbounded">
|
---|
30 | <element name="group" type="tns:group" />
|
---|
31 | <element name="item" type="tns:item" />
|
---|
32 | <element name="separator" type="tns:separator" />
|
---|
33 | </choice>
|
---|
34 | </sequence>
|
---|
35 | <attribute name="icon" type="string" />
|
---|
36 |
|
---|
37 | <attribute name="type" use="prohibited" />
|
---|
38 | <attribute name="text" use="prohibited" />
|
---|
39 | <anyAttribute processContents="skip" />
|
---|
40 | </complexType>
|
---|
41 |
|
---|
42 | <complexType name="group">
|
---|
43 | <complexContent>
|
---|
44 | <extension base="tns:group-parent">
|
---|
45 | <attribute name="name" type="string" use="required" />
|
---|
46 | </extension>
|
---|
47 | </complexContent>
|
---|
48 | </complexType>
|
---|
49 |
|
---|
50 | <complexType name="separator" />
|
---|
51 |
|
---|
52 | <complexType name="item">
|
---|
53 | <sequence>
|
---|
54 | <choice minOccurs="0" maxOccurs="unbounded">
|
---|
55 | <group ref="tns:optional_elements" />
|
---|
56 | <element name="key" type="tns:key" />
|
---|
57 | <element name="optional" type="tns:optional" minOccurs="0" />
|
---|
58 | </choice>
|
---|
59 | <element name="roles" type="tns:roles" minOccurs="0" />
|
---|
60 | </sequence>
|
---|
61 | <attribute name="name" type="string" use="required" />
|
---|
62 | <attribute name="icon" type="string" />
|
---|
63 | <attribute name="type" type="string" />
|
---|
64 |
|
---|
65 | <attribute name="text" use="prohibited" />
|
---|
66 | <anyAttribute processContents="skip" />
|
---|
67 | </complexType>
|
---|
68 |
|
---|
69 | <complexType name="optional">
|
---|
70 | <group ref="tns:optional_elements" maxOccurs="unbounded" />
|
---|
71 | </complexType>
|
---|
72 |
|
---|
73 | <group name="optional_elements">
|
---|
74 | <choice>
|
---|
75 | <element name="label" type="tns:label" />
|
---|
76 | <element name="space" type="tns:space" />
|
---|
77 | <element name="link" type="tns:link" />
|
---|
78 | <element name="text" type="tns:text" />
|
---|
79 | <element name="combo" type="tns:combo" />
|
---|
80 | <element name="multiselect" type="tns:multiselect" />
|
---|
81 | <element name="check" type="tns:check" />
|
---|
82 | </choice>
|
---|
83 | </group>
|
---|
84 |
|
---|
85 | <complexType name="key">
|
---|
86 | <attribute name="key" type="string" use="required" />
|
---|
87 | <attribute name="value" type="string" />
|
---|
88 | </complexType>
|
---|
89 |
|
---|
90 |
|
---|
91 | <complexType name="link">
|
---|
92 | <attribute name="href" type="string" use="required" />
|
---|
93 | <attribute name="text" type="string" />
|
---|
94 | <attribute name="text_context" type="string" />
|
---|
95 |
|
---|
96 | <attribute name="name" use="prohibited" />
|
---|
97 | <anyAttribute processContents="skip" />
|
---|
98 | </complexType>
|
---|
99 |
|
---|
100 | <complexType name="label">
|
---|
101 | <attribute name="text" type="string" use="required" />
|
---|
102 | <attribute name="text_context" type="string" />
|
---|
103 |
|
---|
104 | <attribute name="name" use="prohibited" />
|
---|
105 | <anyAttribute processContents="skip" />
|
---|
106 | </complexType>
|
---|
107 |
|
---|
108 | <complexType name="space" />
|
---|
109 |
|
---|
110 | <complexType name="text">
|
---|
111 | <attribute name="key" type="string" use="required" />
|
---|
112 | <attribute name="text" type="string" />
|
---|
113 | <attribute name="text_context" type="string" />
|
---|
114 | <attribute name="default" type="string" />
|
---|
115 | <attribute name="delete_if_empty" type="boolean" />
|
---|
116 | <attribute name="use_last_as_default" type="tns:last_default" />
|
---|
117 | <attribute name="required" type="boolean" />
|
---|
118 |
|
---|
119 | <attribute name="type" use="prohibited" />
|
---|
120 | <attribute name="name" use="prohibited" />
|
---|
121 | <attribute name="value" use="prohibited" />
|
---|
122 | <attribute name="values" use="prohibited" />
|
---|
123 | <anyAttribute processContents="skip" />
|
---|
124 | </complexType>
|
---|
125 |
|
---|
126 | <complexType name="combo">
|
---|
127 | <sequence>
|
---|
128 | <element name="short_description" type="string" minOccurs="0"
|
---|
129 | maxOccurs="unbounded" />
|
---|
130 | </sequence>
|
---|
131 | <attribute name="key" type="string" use="required" />
|
---|
132 | <attribute name="text" type="string" />
|
---|
133 | <attribute name="text_context" type="string" />
|
---|
134 | <attribute name="values" type="string" use="required" />
|
---|
135 | <attribute name="values_context" type="string" />
|
---|
136 | <attribute name="display_values" type="string" />
|
---|
137 | <attribute name="default" type="string" />
|
---|
138 | <attribute name="use_last_as_default" type="tns:last_default" />
|
---|
139 | <attribute name="editable" type="boolean" />
|
---|
140 | <attribute name="delete_if_empty" type="boolean" />
|
---|
141 | <attribute name="required" type="boolean" />
|
---|
142 |
|
---|
143 | <attribute name="type" use="prohibited" />
|
---|
144 | <attribute name="value" use="prohibited" />
|
---|
145 | <attribute name="name" use="prohibited" />
|
---|
146 | <attribute name="delete-if-empty" use="prohibited" />
|
---|
147 | <attribute name="display-values" use="prohibited" />
|
---|
148 | <anyAttribute processContents="skip" />
|
---|
149 | </complexType>
|
---|
150 |
|
---|
151 | <complexType name="multiselect">
|
---|
152 | <attribute name="key" type="string" use="required" />
|
---|
153 | <attribute name="text" type="string" />
|
---|
154 | <attribute name="text_context" type="string" />
|
---|
155 | <attribute name="values" type="string" use="required" />
|
---|
156 | <attribute name="values_context" type="string" />
|
---|
157 | <attribute name="display_values" type="string" />
|
---|
158 | <attribute name="default" type="string" />
|
---|
159 | <attribute name="use_last_as_default" type="tns:last_default" />
|
---|
160 | <attribute name="delimiter" type="string" />
|
---|
161 | <attribute name="delete_if_empty" type="boolean" />
|
---|
162 | <attribute name="required" type="boolean" />
|
---|
163 |
|
---|
164 | <attribute name="type" use="prohibited" />
|
---|
165 | <attribute name="value" use="prohibited" />
|
---|
166 | <attribute name="name" use="prohibited" />
|
---|
167 | <attribute name="delete-if-empty" use="prohibited" />
|
---|
168 | <attribute name="display-values" use="prohibited" />
|
---|
169 | <anyAttribute processContents="skip" />
|
---|
170 | </complexType>
|
---|
171 |
|
---|
172 | <complexType name="check">
|
---|
173 | <attribute name="key" type="string" use="required" />
|
---|
174 | <attribute name="text" type="string" />
|
---|
175 | <attribute name="text_context" type="string" />
|
---|
176 | <attribute name="default" type="tns:check_default" />
|
---|
177 | <attribute name="required" type="boolean" />
|
---|
178 | <attribute name="value_on" type="string" />
|
---|
179 | <attribute name="value_off" type="string" />
|
---|
180 |
|
---|
181 | <attribute name="name" use="prohibited" />
|
---|
182 | <attribute name="type" use="prohibited" />
|
---|
183 | <attribute name="value" use="prohibited" />
|
---|
184 | <anyAttribute processContents="skip" />
|
---|
185 | </complexType>
|
---|
186 |
|
---|
187 | <simpleType name="check_default">
|
---|
188 | <restriction base="string">
|
---|
189 | <enumeration value="on" />
|
---|
190 | <enumeration value="off" />
|
---|
191 | </restriction>
|
---|
192 | </simpleType>
|
---|
193 |
|
---|
194 | <simpleType name="last_default">
|
---|
195 | <restriction base="string">
|
---|
196 | <enumeration value="true" />
|
---|
197 | <enumeration value="false" />
|
---|
198 | <enumeration value="force" />
|
---|
199 | </restriction>
|
---|
200 | </simpleType>
|
---|
201 |
|
---|
202 | <complexType name="roles">
|
---|
203 | <sequence>
|
---|
204 | <element name="role" type="tns:role" minOccurs="1" maxOccurs="unbounded" />
|
---|
205 | </sequence>
|
---|
206 | </complexType>
|
---|
207 |
|
---|
208 | <complexType name="role">
|
---|
209 | <attribute name="key" type="string" />
|
---|
210 | <attribute name="text" type="string" />
|
---|
211 | <attribute name="text_context" type="string" />
|
---|
212 | <attribute name="requisite" type="tns:role_requisite" />
|
---|
213 | <attribute name="type" type="string" />
|
---|
214 | <attribute name="count" type="integer" />
|
---|
215 | <attribute name="required" type="boolean" />
|
---|
216 | </complexType>
|
---|
217 |
|
---|
218 | <simpleType name="role_requisite">
|
---|
219 | <restriction base="string">
|
---|
220 | <enumeration value="required" />
|
---|
221 | <enumeration value="optional" />
|
---|
222 | </restriction>
|
---|
223 | </simpleType>
|
---|
224 |
|
---|
225 | </schema>
|
---|