[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>
|
---|
[5614] | 59 | <element name="roles" type="tns:roles" minOccurs="0" maxOccurs="1" />
|
---|
[3321] | 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" />
|
---|
[5157] | 90 | <attribute name="match" type="string" />
|
---|
[3321] | 91 | </complexType>
|
---|
| 92 |
|
---|
| 93 |
|
---|
| 94 | <complexType name="link">
|
---|
| 95 | <attribute name="href" type="string" use="required" />
|
---|
| 96 | <attribute name="text" type="string" />
|
---|
[3582] | 97 | <attribute name="text_context" type="string" />
|
---|
[3321] | 98 |
|
---|
[3839] | 99 | <attribute name="name" use="prohibited" />
|
---|
| 100 | <anyAttribute processContents="skip" />
|
---|
[3321] | 101 | </complexType>
|
---|
| 102 |
|
---|
| 103 | <complexType name="label">
|
---|
| 104 | <attribute name="text" type="string" use="required" />
|
---|
[3582] | 105 | <attribute name="text_context" type="string" />
|
---|
[3321] | 106 |
|
---|
[3839] | 107 | <attribute name="name" use="prohibited" />
|
---|
| 108 | <anyAttribute processContents="skip" />
|
---|
[3321] | 109 | </complexType>
|
---|
| 110 |
|
---|
| 111 | <complexType name="space" />
|
---|
| 112 |
|
---|
| 113 | <complexType name="text">
|
---|
[3839] | 114 | <attribute name="key" type="string" use="required" />
|
---|
[3321] | 115 | <attribute name="text" type="string" />
|
---|
[3582] | 116 | <attribute name="text_context" type="string" />
|
---|
[3321] | 117 | <attribute name="default" type="string" />
|
---|
[4218] | 118 | <attribute name="use_last_as_default" type="tns:last_default" />
|
---|
[5639] | 119 | <attribute name="auto_increment" type="string" />
|
---|
[5157] | 120 | <attribute name="match" type="tns:match" />
|
---|
[5579] | 121 | <attribute name="length" type="positiveInteger" />
|
---|
[3321] | 122 |
|
---|
[3839] | 123 | <attribute name="type" use="prohibited" />
|
---|
| 124 | <attribute name="name" use="prohibited" />
|
---|
| 125 | <attribute name="value" use="prohibited" />
|
---|
| 126 | <attribute name="values" use="prohibited" />
|
---|
| 127 | <anyAttribute processContents="skip" />
|
---|
[3321] | 128 | </complexType>
|
---|
| 129 |
|
---|
[5180] | 130 | <complexType name="list_entry">
|
---|
[5158] | 131 | <attribute name="value" type="string" use="required" />
|
---|
[5180] | 132 | <attribute name="value_context" type="string" />
|
---|
[5158] | 133 | <attribute name="display_value" type="string" />
|
---|
| 134 | <attribute name="short_description" type="string" />
|
---|
| 135 | <attribute name="icon" type="string" />
|
---|
[5585] | 136 | <attribute name="icon_size" type="integer" />
|
---|
[5722] | 137 | <anyAttribute processContents="skip" />
|
---|
[5158] | 138 | </complexType>
|
---|
| 139 |
|
---|
[3321] | 140 | <complexType name="combo">
|
---|
[5158] | 141 | <!-- use either list_entry's or a combination of values/display_values -->
|
---|
[3741] | 142 | <sequence>
|
---|
[5158] | 143 | <element name="list_entry" type="tns:list_entry" minOccurs="0" maxOccurs="unbounded" />
|
---|
[3741] | 144 | </sequence>
|
---|
[3321] | 145 | <attribute name="key" type="string" use="required" />
|
---|
| 146 | <attribute name="text" type="string" />
|
---|
[3582] | 147 | <attribute name="text_context" type="string" />
|
---|
[5158] | 148 | <attribute name="values" type="string" />
|
---|
[3582] | 149 | <attribute name="values_context" type="string" />
|
---|
[3839] | 150 | <attribute name="display_values" type="string" />
|
---|
[3321] | 151 | <attribute name="default" type="string" />
|
---|
[4218] | 152 | <attribute name="use_last_as_default" type="tns:last_default" />
|
---|
[3321] | 153 | <attribute name="editable" type="boolean" />
|
---|
[5157] | 154 | <attribute name="match" type="tns:match" />
|
---|
[3321] | 155 |
|
---|
[3839] | 156 | <attribute name="type" use="prohibited" />
|
---|
| 157 | <attribute name="value" use="prohibited" />
|
---|
| 158 | <attribute name="name" use="prohibited" />
|
---|
| 159 | <attribute name="delete-if-empty" use="prohibited" />
|
---|
| 160 | <attribute name="display-values" use="prohibited" />
|
---|
| 161 | <anyAttribute processContents="skip" />
|
---|
[3321] | 162 | </complexType>
|
---|
| 163 |
|
---|
[3793] | 164 | <complexType name="multiselect">
|
---|
| 165 | <attribute name="key" type="string" use="required" />
|
---|
| 166 | <attribute name="text" type="string" />
|
---|
| 167 | <attribute name="text_context" type="string" />
|
---|
| 168 | <attribute name="values" type="string" use="required" />
|
---|
| 169 | <attribute name="values_context" type="string" />
|
---|
[3839] | 170 | <attribute name="display_values" type="string" />
|
---|
[3793] | 171 | <attribute name="default" type="string" />
|
---|
[4218] | 172 | <attribute name="use_last_as_default" type="tns:last_default" />
|
---|
[3793] | 173 | <attribute name="delimiter" type="string" />
|
---|
[5157] | 174 | <attribute name="match" type="tns:match" />
|
---|
[3793] | 175 |
|
---|
[3839] | 176 | <attribute name="type" use="prohibited" />
|
---|
| 177 | <attribute name="value" use="prohibited" />
|
---|
| 178 | <attribute name="name" use="prohibited" />
|
---|
| 179 | <attribute name="delete-if-empty" use="prohibited" />
|
---|
| 180 | <attribute name="display-values" use="prohibited" />
|
---|
| 181 | <anyAttribute processContents="skip" />
|
---|
[3793] | 182 | </complexType>
|
---|
| 183 |
|
---|
[3321] | 184 | <complexType name="check">
|
---|
| 185 | <attribute name="key" type="string" use="required" />
|
---|
| 186 | <attribute name="text" type="string" />
|
---|
[3582] | 187 | <attribute name="text_context" type="string" />
|
---|
[3321] | 188 | <attribute name="default" type="tns:check_default" />
|
---|
[3839] | 189 | <attribute name="value_on" type="string" />
|
---|
| 190 | <attribute name="value_off" type="string" />
|
---|
[5157] | 191 | <attribute name="match" type="tns:match" />
|
---|
[3321] | 192 |
|
---|
[3839] | 193 | <attribute name="name" use="prohibited" />
|
---|
| 194 | <attribute name="type" use="prohibited" />
|
---|
| 195 | <attribute name="value" use="prohibited" />
|
---|
| 196 | <anyAttribute processContents="skip" />
|
---|
[3321] | 197 | </complexType>
|
---|
| 198 |
|
---|
| 199 | <simpleType name="check_default">
|
---|
| 200 | <restriction base="string">
|
---|
| 201 | <enumeration value="on" />
|
---|
| 202 | <enumeration value="off" />
|
---|
| 203 | </restriction>
|
---|
| 204 | </simpleType>
|
---|
| 205 |
|
---|
[4218] | 206 | <simpleType name="last_default">
|
---|
| 207 | <restriction base="string">
|
---|
| 208 | <enumeration value="true" />
|
---|
| 209 | <enumeration value="false" />
|
---|
| 210 | <enumeration value="force" />
|
---|
| 211 | </restriction>
|
---|
| 212 | </simpleType>
|
---|
| 213 |
|
---|
[5157] | 214 | <simpleType name="match">
|
---|
| 215 | <restriction base="string">
|
---|
| 216 | <enumeration value="none" />
|
---|
| 217 | <enumeration value="key" />
|
---|
| 218 | <enumeration value="key!" />
|
---|
| 219 | <enumeration value="keyvalue" />
|
---|
| 220 | </restriction>
|
---|
| 221 | </simpleType>
|
---|
| 222 |
|
---|
[3321] | 223 | <complexType name="roles">
|
---|
| 224 | <sequence>
|
---|
[3839] | 225 | <element name="role" type="tns:role" minOccurs="1" maxOccurs="unbounded" />
|
---|
[3321] | 226 | </sequence>
|
---|
| 227 | </complexType>
|
---|
| 228 |
|
---|
| 229 | <complexType name="role">
|
---|
[3839] | 230 | <attribute name="key" type="string" />
|
---|
| 231 | <attribute name="text" type="string" />
|
---|
| 232 | <attribute name="text_context" type="string" />
|
---|
| 233 | <attribute name="requisite" type="tns:role_requisite" />
|
---|
| 234 | <attribute name="type" type="string" />
|
---|
| 235 | <attribute name="count" type="integer" />
|
---|
[5614] | 236 | <attribute name="member_expression" type="string" />
|
---|
[5760] | 237 | <anyAttribute processContents="skip" />
|
---|
[3321] | 238 | </complexType>
|
---|
| 239 |
|
---|
| 240 | <simpleType name="role_requisite">
|
---|
| 241 | <restriction base="string">
|
---|
[3839] | 242 | <enumeration value="required" />
|
---|
| 243 | <enumeration value="optional" />
|
---|
[3321] | 244 | </restriction>
|
---|
| 245 | </simpleType>
|
---|
| 246 |
|
---|
[3533] | 247 | </schema>
|
---|