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