[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" />
|
---|
[6425] | 11 | <element name="presets" type="tns:root">
|
---|
| 12 | <unique name="chunk_id">
|
---|
| 13 | <selector xpath=".//tns:chunk"/>
|
---|
| 14 | <field xpath="@id"/>
|
---|
| 15 | </unique>
|
---|
| 16 | <keyref name="chunk_ref" refer="tns:chunk_id">
|
---|
| 17 | <selector xpath=".//tns:reference"/>
|
---|
| 18 | <field xpath="@ref"/>
|
---|
| 19 | </keyref>
|
---|
| 20 | </element>
|
---|
[3321] | 21 |
|
---|
| 22 | <complexType name="root">
|
---|
| 23 | <complexContent>
|
---|
[3839] | 24 | <extension base="tns:group-parent">
|
---|
[3321] | 25 | <attribute name="author" type="string" />
|
---|
| 26 | <attribute name="version" type="string" />
|
---|
| 27 | <attribute name="shortdescription" type="string" />
|
---|
| 28 | <attribute name="description" type="string" />
|
---|
[3839] | 29 | <attribute name="link" type="string" />
|
---|
[8310] | 30 | <attribute name="baselanguage" type="string" />
|
---|
[3321] | 31 |
|
---|
[3839] | 32 | <anyAttribute processContents="skip" />
|
---|
[3321] | 33 | </extension>
|
---|
| 34 | </complexContent>
|
---|
| 35 | </complexType>
|
---|
| 36 |
|
---|
[3839] | 37 | <complexType name="group-parent">
|
---|
[3321] | 38 | <sequence>
|
---|
| 39 | <choice minOccurs="1" maxOccurs="unbounded">
|
---|
[6425] | 40 | <element name="chunk" type="tns:chunk"/>
|
---|
[3321] | 41 | <element name="group" type="tns:group" />
|
---|
| 42 | <element name="item" type="tns:item" />
|
---|
| 43 | <element name="separator" type="tns:separator" />
|
---|
| 44 | </choice>
|
---|
| 45 | </sequence>
|
---|
| 46 | <attribute name="icon" type="string" />
|
---|
| 47 |
|
---|
[3839] | 48 | <attribute name="type" use="prohibited" />
|
---|
| 49 | <attribute name="text" use="prohibited" />
|
---|
| 50 | <anyAttribute processContents="skip" />
|
---|
[3321] | 51 | </complexType>
|
---|
| 52 |
|
---|
[3839] | 53 | <complexType name="group">
|
---|
| 54 | <complexContent>
|
---|
| 55 | <extension base="tns:group-parent">
|
---|
| 56 | <attribute name="name" type="string" use="required" />
|
---|
| 57 | </extension>
|
---|
| 58 | </complexContent>
|
---|
| 59 | </complexType>
|
---|
| 60 |
|
---|
[3321] | 61 | <complexType name="separator" />
|
---|
| 62 |
|
---|
| 63 | <complexType name="item">
|
---|
| 64 | <sequence>
|
---|
| 65 | <choice minOccurs="0" maxOccurs="unbounded">
|
---|
| 66 | <group ref="tns:optional_elements" />
|
---|
| 67 | <element name="key" type="tns:key" />
|
---|
| 68 | <element name="optional" type="tns:optional" minOccurs="0" />
|
---|
| 69 | </choice>
|
---|
[5614] | 70 | <element name="roles" type="tns:roles" minOccurs="0" maxOccurs="1" />
|
---|
[3321] | 71 | </sequence>
|
---|
[3839] | 72 | <attribute name="name" type="string" use="required" />
|
---|
[3321] | 73 | <attribute name="icon" type="string" />
|
---|
| 74 | <attribute name="type" type="string" />
|
---|
[4431] | 75 | <attribute name="name_template" type="string"/>
|
---|
| 76 | <attribute name="name_template_filter" type="string"/>
|
---|
[6824] | 77 | <attribute name="preset_name_label" type="boolean"/>
|
---|
[3321] | 78 |
|
---|
[3839] | 79 | <attribute name="text" use="prohibited" />
|
---|
| 80 | <anyAttribute processContents="skip" />
|
---|
[3321] | 81 | </complexType>
|
---|
| 82 |
|
---|
| 83 | <complexType name="optional">
|
---|
| 84 | <group ref="tns:optional_elements" maxOccurs="unbounded" />
|
---|
[6308] | 85 | <attribute name="text" type="string" />
|
---|
| 86 | <attribute name="text_context" type="string" />
|
---|
[3321] | 87 | </complexType>
|
---|
| 88 |
|
---|
[7504] | 89 | <complexType name="chunk">
|
---|
| 90 | <choice minOccurs="1" maxOccurs="1">
|
---|
| 91 | <sequence>
|
---|
| 92 | <choice minOccurs="1" maxOccurs="unbounded">
|
---|
| 93 | <group ref="tns:optional_elements" />
|
---|
| 94 | <element name="key" type="tns:key" />
|
---|
| 95 | <element name="optional" type="tns:optional" minOccurs="0" />
|
---|
| 96 | </choice>
|
---|
| 97 | </sequence>
|
---|
| 98 | <sequence>
|
---|
| 99 | <!-- Cannot use tns:list_elements here because reference is present both in optional_elements and list_elements
|
---|
| 100 | so it violates cos-nonambig: Unique Particle Attribution :
|
---|
| 101 | <group ref="tns:list_elements" minOccurs="1" maxOccurs="unbounded" />-->
|
---|
| 102 | <element name="list_entry" type="tns:list_entry" minOccurs="1" maxOccurs="unbounded" />
|
---|
| 103 | </sequence>
|
---|
| 104 | </choice>
|
---|
| 105 | <attribute name="id" type="ID" use="required" />
|
---|
| 106 | </complexType>
|
---|
[6425] | 107 |
|
---|
[7504] | 108 | <complexType name="reference">
|
---|
| 109 | <attribute name="ref" type="IDREF" use="required" />
|
---|
| 110 | </complexType>
|
---|
[6425] | 111 |
|
---|
[7504] | 112 | <group name="optional_elements">
|
---|
[3321] | 113 | <choice>
|
---|
| 114 | <element name="label" type="tns:label" />
|
---|
| 115 | <element name="space" type="tns:space" />
|
---|
| 116 | <element name="link" type="tns:link" />
|
---|
[6572] | 117 | <element name="preset_link" type="tns:preset_link" />
|
---|
[3321] | 118 | <element name="text" type="tns:text" />
|
---|
| 119 | <element name="combo" type="tns:combo" />
|
---|
[3793] | 120 | <element name="multiselect" type="tns:multiselect" />
|
---|
[6308] | 121 | <element name="checkgroup" type="tns:checkgroup" />
|
---|
[3321] | 122 | <element name="check" type="tns:check" />
|
---|
[6198] | 123 | <element name="item_separator" type="tns:separator" />
|
---|
[6425] | 124 | <element name="reference" type="tns:reference" />
|
---|
[3321] | 125 | </choice>
|
---|
| 126 | </group>
|
---|
| 127 |
|
---|
[7504] | 128 | <group name="list_elements">
|
---|
| 129 | <choice>
|
---|
| 130 | <element name="list_entry" type="tns:list_entry" />
|
---|
| 131 | <element name="reference" type="tns:reference" />
|
---|
| 132 | </choice>
|
---|
| 133 | </group>
|
---|
[7503] | 134 |
|
---|
[3321] | 135 | <complexType name="key">
|
---|
[3839] | 136 | <attribute name="key" type="string" use="required" />
|
---|
| 137 | <attribute name="value" type="string" />
|
---|
[5157] | 138 | <attribute name="match" type="string" />
|
---|
[3321] | 139 | </complexType>
|
---|
| 140 |
|
---|
| 141 | <complexType name="link">
|
---|
| 142 | <attribute name="href" type="string" use="required" />
|
---|
| 143 | <attribute name="text" type="string" />
|
---|
[3582] | 144 | <attribute name="text_context" type="string" />
|
---|
[3321] | 145 |
|
---|
[3839] | 146 | <attribute name="name" use="prohibited" />
|
---|
| 147 | <anyAttribute processContents="skip" />
|
---|
[3321] | 148 | </complexType>
|
---|
| 149 |
|
---|
[6572] | 150 | <complexType name="preset_link">
|
---|
| 151 | <attribute name="preset_name" type="string" use="required" />
|
---|
| 152 | <attribute name="name" use="prohibited" />
|
---|
| 153 | </complexType>
|
---|
| 154 |
|
---|
[3321] | 155 | <complexType name="label">
|
---|
| 156 | <attribute name="text" type="string" use="required" />
|
---|
[3582] | 157 | <attribute name="text_context" type="string" />
|
---|
[7532] | 158 | <attribute name="icon" type="string" />
|
---|
| 159 | <attribute name="icon_size" type="integer" />
|
---|
[3321] | 160 |
|
---|
[3839] | 161 | <attribute name="name" use="prohibited" />
|
---|
| 162 | <anyAttribute processContents="skip" />
|
---|
[3321] | 163 | </complexType>
|
---|
| 164 |
|
---|
| 165 | <complexType name="space" />
|
---|
| 166 |
|
---|
| 167 | <complexType name="text">
|
---|
[3839] | 168 | <attribute name="key" type="string" use="required" />
|
---|
[3321] | 169 | <attribute name="text" type="string" />
|
---|
[3582] | 170 | <attribute name="text_context" type="string" />
|
---|
[3321] | 171 | <attribute name="default" type="string" />
|
---|
[4218] | 172 | <attribute name="use_last_as_default" type="tns:last_default" />
|
---|
[5639] | 173 | <attribute name="auto_increment" type="string" />
|
---|
[5157] | 174 | <attribute name="match" type="tns:match" />
|
---|
[5997] | 175 | <attribute name="length" type="positiveInteger" />
|
---|
[7118] | 176 | <attribute name="alternative_autocomplete_keys" type="string" />
|
---|
[3321] | 177 |
|
---|
[3839] | 178 | <attribute name="type" use="prohibited" />
|
---|
| 179 | <attribute name="name" use="prohibited" />
|
---|
| 180 | <attribute name="value" use="prohibited" />
|
---|
| 181 | <attribute name="values" use="prohibited" />
|
---|
| 182 | <anyAttribute processContents="skip" />
|
---|
[3321] | 183 | </complexType>
|
---|
| 184 |
|
---|
[5180] | 185 | <complexType name="list_entry">
|
---|
[5158] | 186 | <attribute name="value" type="string" use="required" />
|
---|
[5180] | 187 | <attribute name="value_context" type="string" />
|
---|
[5158] | 188 | <attribute name="display_value" type="string" />
|
---|
| 189 | <attribute name="short_description" type="string" />
|
---|
| 190 | <attribute name="icon" type="string" />
|
---|
[5585] | 191 | <attribute name="icon_size" type="integer" />
|
---|
[5722] | 192 | <anyAttribute processContents="skip" />
|
---|
[5158] | 193 | </complexType>
|
---|
| 194 |
|
---|
[3321] | 195 | <complexType name="combo">
|
---|
[5158] | 196 | <!-- use either list_entry's or a combination of values/display_values -->
|
---|
[3741] | 197 | <sequence>
|
---|
[7504] | 198 | <group ref="tns:list_elements" minOccurs="0" maxOccurs="unbounded" />
|
---|
[3741] | 199 | </sequence>
|
---|
[3321] | 200 | <attribute name="key" type="string" use="required" />
|
---|
| 201 | <attribute name="text" type="string" />
|
---|
[3582] | 202 | <attribute name="text_context" type="string" />
|
---|
[5158] | 203 | <attribute name="values" type="string" />
|
---|
[6055] | 204 | <attribute name="values_from" type="string" />
|
---|
[3582] | 205 | <attribute name="values_context" type="string" />
|
---|
[8872] | 206 | <attribute name="values_no_i18n" type="boolean" />
|
---|
[8877] | 207 | <attribute name="values_sort" type="boolean" />
|
---|
[3839] | 208 | <attribute name="display_values" type="string" />
|
---|
[6425] | 209 | <attribute name="values_searchable" type="boolean" />
|
---|
[3321] | 210 | <attribute name="default" type="string" />
|
---|
[4218] | 211 | <attribute name="use_last_as_default" type="tns:last_default" />
|
---|
[6308] | 212 | <attribute name="delimiter" type="string" />
|
---|
[3321] | 213 | <attribute name="editable" type="boolean" />
|
---|
[5157] | 214 | <attribute name="match" type="tns:match" />
|
---|
[5997] | 215 | <attribute name="length" type="positiveInteger" />
|
---|
[3321] | 216 |
|
---|
[3839] | 217 | <attribute name="type" use="prohibited" />
|
---|
| 218 | <attribute name="value" use="prohibited" />
|
---|
| 219 | <attribute name="name" use="prohibited" />
|
---|
| 220 | <attribute name="delete-if-empty" use="prohibited" />
|
---|
| 221 | <attribute name="display-values" use="prohibited" />
|
---|
| 222 | <anyAttribute processContents="skip" />
|
---|
[3321] | 223 | </complexType>
|
---|
| 224 |
|
---|
[3793] | 225 | <complexType name="multiselect">
|
---|
[6308] | 226 | <!-- use either list_entry's or a combination of values/display_values -->
|
---|
| 227 | <sequence>
|
---|
[7504] | 228 | <group ref="tns:list_elements" minOccurs="0" maxOccurs="unbounded" />
|
---|
[6308] | 229 | </sequence>
|
---|
[3793] | 230 | <attribute name="key" type="string" use="required" />
|
---|
| 231 | <attribute name="text" type="string" />
|
---|
| 232 | <attribute name="text_context" type="string" />
|
---|
[6055] | 233 | <attribute name="values" type="string" />
|
---|
| 234 | <attribute name="values_from" type="string" />
|
---|
[3793] | 235 | <attribute name="values_context" type="string" />
|
---|
[3839] | 236 | <attribute name="display_values" type="string" />
|
---|
[7504] | 237 | <attribute name="values_searchable" type="boolean" />
|
---|
[3793] | 238 | <attribute name="default" type="string" />
|
---|
[4218] | 239 | <attribute name="use_last_as_default" type="tns:last_default" />
|
---|
[3793] | 240 | <attribute name="delimiter" type="string" />
|
---|
[5157] | 241 | <attribute name="match" type="tns:match" />
|
---|
[3793] | 242 |
|
---|
[3839] | 243 | <attribute name="type" use="prohibited" />
|
---|
| 244 | <attribute name="value" use="prohibited" />
|
---|
| 245 | <attribute name="name" use="prohibited" />
|
---|
| 246 | <attribute name="delete-if-empty" use="prohibited" />
|
---|
| 247 | <attribute name="display-values" use="prohibited" />
|
---|
| 248 | <anyAttribute processContents="skip" />
|
---|
[3793] | 249 | </complexType>
|
---|
| 250 |
|
---|
[6308] | 251 | <complexType name="checkgroup">
|
---|
| 252 | <sequence>
|
---|
| 253 | <choice minOccurs="1" maxOccurs="unbounded">
|
---|
| 254 | <element name="check" type="tns:check" />
|
---|
| 255 | </choice>
|
---|
| 256 | </sequence>
|
---|
| 257 | <attribute name="columns" type="positiveInteger" />
|
---|
| 258 | <anyAttribute processContents="skip" />
|
---|
| 259 | </complexType>
|
---|
[6114] | 260 |
|
---|
[3321] | 261 | <complexType name="check">
|
---|
| 262 | <attribute name="key" type="string" use="required" />
|
---|
| 263 | <attribute name="text" type="string" />
|
---|
[3582] | 264 | <attribute name="text_context" type="string" />
|
---|
[3321] | 265 | <attribute name="default" type="tns:check_default" />
|
---|
[3839] | 266 | <attribute name="value_on" type="string" />
|
---|
| 267 | <attribute name="value_off" type="string" />
|
---|
[7504] | 268 | <attribute name="disable_off" type="boolean" />
|
---|
[5157] | 269 | <attribute name="match" type="tns:match" />
|
---|
[3321] | 270 |
|
---|
[3839] | 271 | <attribute name="name" use="prohibited" />
|
---|
| 272 | <attribute name="type" use="prohibited" />
|
---|
| 273 | <attribute name="value" use="prohibited" />
|
---|
| 274 | <anyAttribute processContents="skip" />
|
---|
[3321] | 275 | </complexType>
|
---|
| 276 |
|
---|
| 277 | <simpleType name="check_default">
|
---|
| 278 | <restriction base="string">
|
---|
| 279 | <enumeration value="on" />
|
---|
| 280 | <enumeration value="off" />
|
---|
| 281 | </restriction>
|
---|
| 282 | </simpleType>
|
---|
| 283 |
|
---|
[4218] | 284 | <simpleType name="last_default">
|
---|
| 285 | <restriction base="string">
|
---|
| 286 | <enumeration value="true" />
|
---|
| 287 | <enumeration value="false" />
|
---|
| 288 | <enumeration value="force" />
|
---|
| 289 | </restriction>
|
---|
| 290 | </simpleType>
|
---|
| 291 |
|
---|
[5157] | 292 | <simpleType name="match">
|
---|
| 293 | <restriction base="string">
|
---|
| 294 | <enumeration value="none" />
|
---|
| 295 | <enumeration value="key" />
|
---|
| 296 | <enumeration value="key!" />
|
---|
| 297 | <enumeration value="keyvalue" />
|
---|
[7614] | 298 | <enumeration value="keyvalue!" />
|
---|
[5157] | 299 | </restriction>
|
---|
| 300 | </simpleType>
|
---|
| 301 |
|
---|
[3321] | 302 | <complexType name="roles">
|
---|
| 303 | <sequence>
|
---|
[3839] | 304 | <element name="role" type="tns:role" minOccurs="1" maxOccurs="unbounded" />
|
---|
[3321] | 305 | </sequence>
|
---|
| 306 | </complexType>
|
---|
| 307 |
|
---|
| 308 | <complexType name="role">
|
---|
[3839] | 309 | <attribute name="key" type="string" />
|
---|
| 310 | <attribute name="text" type="string" />
|
---|
| 311 | <attribute name="text_context" type="string" />
|
---|
| 312 | <attribute name="requisite" type="tns:role_requisite" />
|
---|
| 313 | <attribute name="type" type="string" />
|
---|
| 314 | <attribute name="count" type="integer" />
|
---|
[5614] | 315 | <attribute name="member_expression" type="string" />
|
---|
[5760] | 316 | <anyAttribute processContents="skip" />
|
---|
[3321] | 317 | </complexType>
|
---|
| 318 |
|
---|
| 319 | <simpleType name="role_requisite">
|
---|
| 320 | <restriction base="string">
|
---|
[3839] | 321 | <enumeration value="required" />
|
---|
| 322 | <enumeration value="optional" />
|
---|
[3321] | 323 | </restriction>
|
---|
| 324 | </simpleType>
|
---|
| 325 |
|
---|
[3533] | 326 | </schema>
|
---|