source: josm/trunk/data/tagging-preset.xsd@ 4656

Last change on this file since 4656 was 4431, checked in by jttt, 13 years ago

Custom primitive name formatters via tagging presets

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