[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 |
|
---|
[3839] | 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 -->
|
---|
[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" />
|
---|
| 64 |
|
---|
[3839] | 65 | <attribute name="text" use="prohibited" />
|
---|
| 66 | <anyAttribute processContents="skip" />
|
---|
[3321] | 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" />
|
---|
[3793] | 80 | <element name="multiselect" type="tns:multiselect" />
|
---|
[3321] | 81 | <element name="check" type="tns:check" />
|
---|
| 82 | </choice>
|
---|
| 83 | </group>
|
---|
| 84 |
|
---|
| 85 | <complexType name="key">
|
---|
[3839] | 86 | <attribute name="key" type="string" use="required" />
|
---|
| 87 | <attribute name="value" type="string" />
|
---|
[3321] | 88 | </complexType>
|
---|
| 89 |
|
---|
| 90 |
|
---|
| 91 | <complexType name="link">
|
---|
| 92 | <attribute name="href" type="string" use="required" />
|
---|
| 93 | <attribute name="text" type="string" />
|
---|
[3582] | 94 | <attribute name="text_context" type="string" />
|
---|
[3321] | 95 |
|
---|
[3839] | 96 | <attribute name="name" use="prohibited" />
|
---|
| 97 | <anyAttribute processContents="skip" />
|
---|
[3321] | 98 | </complexType>
|
---|
| 99 |
|
---|
| 100 | <complexType name="label">
|
---|
| 101 | <attribute name="text" type="string" use="required" />
|
---|
[3582] | 102 | <attribute name="text_context" type="string" />
|
---|
[3321] | 103 |
|
---|
[3839] | 104 | <attribute name="name" use="prohibited" />
|
---|
| 105 | <anyAttribute processContents="skip" />
|
---|
[3321] | 106 | </complexType>
|
---|
| 107 |
|
---|
| 108 | <complexType name="space" />
|
---|
| 109 |
|
---|
| 110 | <complexType name="text">
|
---|
[3839] | 111 | <attribute name="key" type="string" use="required" />
|
---|
[3321] | 112 | <attribute name="text" type="string" />
|
---|
[3582] | 113 | <attribute name="text_context" type="string" />
|
---|
[3321] | 114 | <attribute name="default" type="string" />
|
---|
| 115 | <attribute name="delete_if_empty" type="boolean" />
|
---|
| 116 | <attribute name="use_last_as_default" type="boolean" />
|
---|
[3839] | 117 | <attribute name="required" type="boolean" />
|
---|
[3321] | 118 |
|
---|
[3839] | 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" />
|
---|
[3321] | 124 | </complexType>
|
---|
| 125 |
|
---|
| 126 | <complexType name="combo">
|
---|
[3741] | 127 | <sequence>
|
---|
[3839] | 128 | <element name="short_description" type="string" minOccurs="0"
|
---|
| 129 | maxOccurs="unbounded" />
|
---|
[3741] | 130 | </sequence>
|
---|
[3321] | 131 | <attribute name="key" type="string" use="required" />
|
---|
| 132 | <attribute name="text" type="string" />
|
---|
[3582] | 133 | <attribute name="text_context" type="string" />
|
---|
[3321] | 134 | <attribute name="values" type="string" use="required" />
|
---|
[3582] | 135 | <attribute name="values_context" type="string" />
|
---|
[3839] | 136 | <attribute name="display_values" type="string" />
|
---|
[3321] | 137 | <attribute name="default" type="string" />
|
---|
| 138 | <attribute name="editable" type="boolean" />
|
---|
| 139 | <attribute name="delete_if_empty" type="boolean" />
|
---|
[3839] | 140 | <attribute name="required" type="boolean" />
|
---|
[3321] | 141 |
|
---|
[3839] | 142 | <attribute name="type" use="prohibited" />
|
---|
| 143 | <attribute name="value" use="prohibited" />
|
---|
| 144 | <attribute name="name" use="prohibited" />
|
---|
| 145 | <attribute name="delete-if-empty" use="prohibited" />
|
---|
| 146 | <attribute name="display-values" use="prohibited" />
|
---|
| 147 | <anyAttribute processContents="skip" />
|
---|
[3321] | 148 | </complexType>
|
---|
| 149 |
|
---|
[3793] | 150 | <complexType name="multiselect">
|
---|
| 151 | <attribute name="key" type="string" use="required" />
|
---|
| 152 | <attribute name="text" type="string" />
|
---|
| 153 | <attribute name="text_context" type="string" />
|
---|
| 154 | <attribute name="values" type="string" use="required" />
|
---|
| 155 | <attribute name="values_context" type="string" />
|
---|
[3839] | 156 | <attribute name="display_values" type="string" />
|
---|
[3793] | 157 | <attribute name="default" type="string" />
|
---|
| 158 | <attribute name="delimiter" type="string" />
|
---|
| 159 | <attribute name="delete_if_empty" type="boolean" />
|
---|
[3839] | 160 | <attribute name="required" type="boolean" />
|
---|
[3793] | 161 |
|
---|
[3839] | 162 | <attribute name="type" use="prohibited" />
|
---|
| 163 | <attribute name="value" use="prohibited" />
|
---|
| 164 | <attribute name="name" use="prohibited" />
|
---|
| 165 | <attribute name="delete-if-empty" use="prohibited" />
|
---|
| 166 | <attribute name="display-values" use="prohibited" />
|
---|
| 167 | <anyAttribute processContents="skip" />
|
---|
[3793] | 168 | </complexType>
|
---|
| 169 |
|
---|
[3321] | 170 | <complexType name="check">
|
---|
| 171 | <attribute name="key" type="string" use="required" />
|
---|
| 172 | <attribute name="text" type="string" />
|
---|
[3582] | 173 | <attribute name="text_context" type="string" />
|
---|
[3321] | 174 | <attribute name="default" type="tns:check_default" />
|
---|
| 175 | <attribute name="use_last_as_default" type="boolean" />
|
---|
[3839] | 176 | <attribute name="required" type="boolean" />
|
---|
| 177 | <attribute name="value_on" type="string" />
|
---|
| 178 | <attribute name="value_off" type="string" />
|
---|
[3321] | 179 |
|
---|
[3839] | 180 | <attribute name="name" use="prohibited" />
|
---|
| 181 | <attribute name="type" use="prohibited" />
|
---|
| 182 | <attribute name="value" use="prohibited" />
|
---|
| 183 | <anyAttribute processContents="skip" />
|
---|
[3321] | 184 | </complexType>
|
---|
| 185 |
|
---|
| 186 | <simpleType name="check_default">
|
---|
| 187 | <restriction base="string">
|
---|
| 188 | <enumeration value="on" />
|
---|
| 189 | <enumeration value="off" />
|
---|
| 190 | </restriction>
|
---|
| 191 | </simpleType>
|
---|
| 192 |
|
---|
| 193 | <complexType name="roles">
|
---|
| 194 | <sequence>
|
---|
[3839] | 195 | <element name="role" type="tns:role" minOccurs="1" maxOccurs="unbounded" />
|
---|
[3321] | 196 | </sequence>
|
---|
| 197 | </complexType>
|
---|
| 198 |
|
---|
| 199 | <complexType name="role">
|
---|
[3839] | 200 | <attribute name="key" type="string" />
|
---|
| 201 | <attribute name="text" type="string" />
|
---|
| 202 | <attribute name="text_context" type="string" />
|
---|
| 203 | <attribute name="requisite" type="tns:role_requisite" />
|
---|
| 204 | <attribute name="type" type="string" />
|
---|
| 205 | <attribute name="count" type="integer" />
|
---|
| 206 | <attribute name="required" type="boolean" />
|
---|
[3321] | 207 | </complexType>
|
---|
| 208 |
|
---|
| 209 | <simpleType name="role_requisite">
|
---|
| 210 | <restriction base="string">
|
---|
[3839] | 211 | <enumeration value="required" />
|
---|
| 212 | <enumeration value="optional" />
|
---|
[3321] | 213 | </restriction>
|
---|
| 214 | </simpleType>
|
---|
| 215 |
|
---|
[3533] | 216 | </schema>
|
---|