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

Last change on this file since 18897 was 18812, checked in by taylor.smock, 16 months ago

Fix #23110: Add cash_in to amenity=atm

This also ignores some tags.

  • Property svn:eol-style set to native
File size: 33.4 KB
Line 
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"
3 xmlns:tns="http://josm.openstreetmap.de/tagging-preset-1.0"
4 elementFormDefault="qualified">
5
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 -->
9
10 <element name="annotations" type="tns:root" />
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>
21
22 <complexType name="root">
23 <annotation>
24 <documentation>
25 Has to be the main tag of the file.
26 </documentation>
27 </annotation>
28 <complexContent>
29 <extension base="tns:group-parent">
30 <attribute name="author" type="string">
31 <annotation>
32 <documentation>
33 The name of the author of the preset.
34 </documentation>
35 </annotation>
36 </attribute>
37 <attribute name="version" type="string">
38 <annotation>
39 <documentation>
40 The version number of the file. For automatic version adjustment of presets managed in this wiki you have to use two internal variables: [[revision]] (the latest version number of the wiki page) and [[date]] (the date of the last edit), e.g. version="1.[[revision]]_[[date]]".
41 </documentation>
42 </annotation>
43 </attribute>
44 <attribute name="shortdescription" type="string">
45 <annotation>
46 <documentation>
47 Very short overview description i.e. the "name" of the preset.
48 <br/>
49 May be localized (i.e. de.shortdescription)
50 </documentation>
51 </annotation>
52 </attribute>
53 <attribute name="description" type="string">
54 <annotation>
55 <documentation>
56 Description what the file contains.
57 <br/>
58 May be localized (i.e. de.description)
59 </documentation>
60 </annotation>
61 </attribute>
62 <attribute name="link" type="string">
63 <annotation>
64 <documentation>
65 Web link to further details.
66 <br/>
67 May be localized (i.e. de.link)
68 </documentation>
69 </annotation>
70 </attribute>
71 <attribute name="baselanguage" type="string">
72 <annotation>
73 <documentation>
74 When the base language is not English, specify it here (using non English preset texts will prevent automatic translation, once it is implemented (#11392)).
75 </documentation>
76 </annotation>
77 </attribute>
78
79 <anyAttribute processContents="skip" />
80 </extension>
81 </complexContent>
82 </complexType>
83
84 <complexType name="group-parent">
85 <sequence>
86 <choice minOccurs="1" maxOccurs="unbounded">
87 <element name="chunk" type="tns:chunk"/>
88 <element name="group" type="tns:group" />
89 <element name="item" type="tns:item" />
90 <element name="separator" type="tns:separator" />
91 </choice>
92 </sequence>
93 <attributeGroup ref="tns:attributes.icon" />
94
95 <attribute name="type" use="prohibited" />
96 <attribute name="text" use="prohibited" />
97 <anyAttribute processContents="skip" />
98 </complexType>
99
100 <complexType name="group">
101 <annotation>
102 <documentation>
103 Used to group items in sub menus. name is required, icon is optional attribute.
104 </documentation>
105 </annotation>
106 <complexContent>
107 <extension base="tns:group-parent">
108 <attributeGroup ref="tns:attributes.name" />
109 </extension>
110 </complexContent>
111 </complexType>
112
113 <complexType name="separator">
114 <annotation>
115 <documentation>
116 Insert a line separator into the menu.
117 </documentation>
118 </annotation>
119 </complexType>
120
121 <complexType name="item">
122 <annotation>
123 <documentation>
124 Every item is one annotation set to select from. name is required, type and preset_name_label are recommended, icon and name_template are optional attributes.
125 </documentation>
126 </annotation>
127 <sequence>
128 <choice minOccurs="0" maxOccurs="unbounded">
129 <group ref="tns:optional_elements" />
130 <element name="key" type="tns:key" />
131 <element name="optional" type="tns:optional" minOccurs="0" />
132 </choice>
133 <element name="roles" type="tns:roles" minOccurs="0" maxOccurs="1" />
134 </sequence>
135 <attributeGroup ref="tns:attributes.name" />
136 <attributeGroup ref="tns:attributes.icon" />
137 <attribute name="type" type="string">
138 <annotation>
139 <documentation><![CDATA[
140 When specified, only objects of the given type will work with this tagging preset. Can be "node", "way", "closedway", "multipolygon", "relation" or any comma separated combination of them. Note that "multipolygon" is not included in "relation", so if the preset should apply for multipolygons and other relation types, you need to specify both: "multipolygon,relation". Also used in the <role> tag to specify which object types are allowed for a specific relation member.
141 ]]></documentation>
142 </annotation>
143 </attribute>
144 <attribute name="name_template" type="string">
145 <annotation>
146 <documentation>
147 Custom name formatter for OSM primitives matching this preset. See #name_templatedetails for details.
148 </documentation>
149 </annotation>
150 </attribute>
151 <attribute name="name_template_filter" type="string">
152 <annotation>
153 <documentation>
154 Name templates can be used to define custom formatting for OSM primitives or GPX waypoints (for example in the Relations or the Selection).
155 </documentation>
156 </annotation>
157 </attribute>
158 <attribute name="match_expression" type="string">
159 <annotation>
160 <documentation>
161 Additional criteria for matching primitives. Specified in <a href="https://josm.openstreetmap.de/wiki/Help/Action/Search">JOSM search syntax</a>.
162 For instance, a preset with <code>match_expression="foo=bar"</code> requires OSM objects to have the tag <code>foo=bar</code>.
163 You may want to use the <code>match_expression</code> to exclude certain OSM objects, for instance when a more specific preset is present.
164 </documentation>
165 </annotation>
166 </attribute>
167 <attribute name="preset_name_label" type="boolean">
168 <annotation>
169 <documentation>
170 Whether to insert "[preset name]" label in dialog (defaults to "false" for backward-compatibility on external presets).
171 </documentation>
172 </annotation>
173 </attribute>
174
175 <attribute name="text" use="prohibited" />
176 <anyAttribute processContents="skip" />
177 </complexType>
178
179 <complexType name="optional">
180 <annotation>
181 <documentation><![CDATA[
182 Used to group some optional elements of an item. The text attribute is optional. If used without text then this is equivalent to <space ><label text="Optional Attributes:" /><space />
183 ]]></documentation>
184 </annotation>
185 <group ref="tns:optional_elements" maxOccurs="unbounded" />
186 <attributeGroup ref="tns:attributes.text" />
187 </complexType>
188
189 <complexType name="chunk">
190 <annotation>
191 <documentation>
192 To define a template of elements for later (repeated) use. The id attribute is mandatory.
193 </documentation>
194 </annotation>
195 <choice minOccurs="1" maxOccurs="1">
196 <sequence>
197 <choice minOccurs="1" maxOccurs="unbounded">
198 <group ref="tns:optional_elements" />
199 <element name="key" type="tns:key" />
200 <element name="optional" type="tns:optional" minOccurs="0" />
201 <element name="roles" type="tns:roles" minOccurs="0" />
202 </choice>
203 </sequence>
204 <sequence>
205 <!-- Cannot use tns:list_elements here because reference is present both in optional_elements and list_elements
206 so it violates cos-nonambig: Unique Particle Attribution :
207 <group ref="tns:list_elements" minOccurs="1" maxOccurs="unbounded" />-->
208 <element name="list_entry" type="tns:list_entry" minOccurs="1" maxOccurs="unbounded" />
209 </sequence>
210 <sequence>
211 <element name="role" type="tns:role" minOccurs="1" maxOccurs="unbounded" />
212 </sequence>
213 </choice>
214 <attribute name="id" type="ID" use="required">
215 <annotation>
216 <documentation><![CDATA[
217 The unique identifier for this <chunk>.
218 ]]></documentation>
219 </annotation>
220 </attribute>
221 </complexType>
222
223 <complexType name="reference">
224 <attribute name="ref" type="IDREF" use="required" />
225 </complexType>
226
227 <group name="optional_elements">
228 <choice>
229 <element name="label" type="tns:label" />
230 <element name="space" type="tns:space" />
231 <element name="link" type="tns:link" />
232 <element name="preset_link" type="tns:preset_link" />
233 <element name="text" type="tns:text" />
234 <element name="combo" type="tns:combo" />
235 <element name="multiselect" type="tns:multiselect" />
236 <element name="checkgroup" type="tns:checkgroup" />
237 <element name="check" type="tns:check" />
238 <element name="item_separator" type="tns:separator" />
239 <element name="reference" type="tns:reference" />
240 </choice>
241 </group>
242
243 <group name="list_elements">
244 <choice>
245 <element name="list_entry" type="tns:list_entry" />
246 <element name="reference" type="tns:reference" />
247 </choice>
248 </group>
249
250 <complexType name="key">
251 <annotation>
252 <documentation>
253 This tag will always set a key to a specific value. key is required and if value is present, the key will be set. If value attribute is omitted, the key is removed. The match attribute is optional.
254 </documentation>
255 </annotation>
256 <attribute name="key" type="string" use="required">
257 <annotation>
258 <documentation>
259 This specifies the property key that will be modified by the item.
260 </documentation>
261 </annotation>
262 </attribute>
263 <attribute name="value" type="string">
264 <annotation>
265 <documentation><![CDATA[
266 Specify a value to be entered in the <key> tag.
267 ]]></documentation>
268 </annotation>
269 </attribute>
270 <attribute name="match" type="tns:match" />
271 </complexType>
272
273 <complexType name="link">
274 <annotation>
275 <documentation>
276 Specify a web link for this feature or to anything else of use. Either the wiki (referring to an OSM wiki page, e.g. "Tag:leisure=park") or the href (full URL) attribute is required. When the wiki attribute is used the link points to the wiki page of the language JOSM is set to. If it doesn't exist the English page is shown.
277 </documentation>
278 </annotation>
279 <attribute name="wiki" type="string" />
280 <attribute name="href" type="string" />
281 <attributeGroup ref="tns:attributes.text" />
282 <attributeGroup ref="tns:attributes.icon" />
283
284 <attribute name="name" use="prohibited" />
285 <anyAttribute processContents="skip" />
286 </complexType>
287
288 <complexType name="preset_link">
289 <annotation>
290 <documentation><![CDATA[
291 Adds a link to an other preset with a label on top. The preset_name attribute is required, text to override the label (default is "Edit also …") and text_context are optional. A sequence of <preset_link /> without text or a identical text value are grouped below one label. Watch out for presets with identical name as it is not predictable to which preset the link will lead to, see #12716.
292 ]]></documentation>
293 </annotation>
294 <attribute name="preset_name" type="string" use="required">
295 <annotation>
296 <documentation>
297 The exact name of the preset to link to.
298 </documentation>
299 </annotation>
300 </attribute>
301 <attributeGroup ref="tns:attributes.text" />
302 <attribute name="name" use="prohibited" />
303 <anyAttribute processContents="skip" />
304 </complexType>
305
306 <complexType name="label">
307 <annotation>
308 <documentation>
309 Labels are static texts for display. text is a required attribute, icon and icon_size are optional.
310 </documentation>
311 </annotation>
312 <attributeGroup ref="tns:attributes.text" />
313 <attributeGroup ref="tns:attributes.icon" />
314
315 <attribute name="name" use="prohibited" />
316 <anyAttribute processContents="skip" />
317 </complexType>
318
319 <complexType name="space">
320 <annotation>
321 <documentation>
322 Add some space (i.e. a newline).
323 </documentation>
324 </annotation>
325 </complexType>
326
327 <complexType name="text">
328 <attributeGroup ref="tns:attributes.key" />
329 <attributeGroup ref="tns:attributes.text" />
330 <attributeGroup ref="tns:attributes.icon" />
331 <attribute name="use_last_as_default" type="tns:last_default" />
332 <attribute name="auto_increment" type="string">
333 <annotation>
334 <documentation><![CDATA[
335 May contain a comma separated list of integer increments or decrements, e.g. "-2,-1,+1,+2". A button will be shown next to the <text /> field for each value, allowing the user to select auto-increment with the given stepping. Auto-increment only happens if the user selects it. There is also a button to deselect auto-increment. Default is no auto-increment. Mutually exclusive with use_last_as_default.
336 ]]></documentation>
337 </annotation>
338 </attribute>
339 <attribute name="match" type="tns:match" />
340 <attributeGroup ref="tns:attributes.length" />
341 <attribute name="alternative_autocomplete_keys" type="string">
342 <annotation>
343 <documentation><![CDATA[
344 A comma separated list of alternative keys to use for auto completion of <text>.
345 ]]></documentation>
346 </annotation>
347 </attribute>
348 <attribute name="value_template" type="string">
349 <annotation>
350 <documentation><![CDATA[
351 A template to generate the value automatically based on other <text> values of this preset.
352 For instance, "Bus {ref}: {from} → {to}" can be used to generate the name of a bus route relation.
353 ]]></documentation>
354 </annotation>
355 </attribute>
356
357 <attribute name="type" use="prohibited" />
358 <attribute name="name" use="prohibited" />
359 <attribute name="value" use="prohibited" />
360 <attribute name="values" use="prohibited" />
361 <anyAttribute processContents="skip" />
362 </complexType>
363
364 <complexType name="list_entry">
365 <annotation>
366 <documentation><![CDATA[
367 Used in <combo/> and <multiselect/>. More information see short_descriptions below. The attributes are value, display_value, short_description, icon and icon_size.
368 ]]></documentation>
369 </annotation>
370 <attribute name="value" type="string" use="required" />
371 <attribute name="value_context" type="string" />
372 <attribute name="display_value" type="string" />
373 <attribute name="short_description" type="string">
374 <annotation>
375 <documentation><![CDATA[
376 A delimiter-separated list of texts to be displayed below each display_value. (Only if it is not possible to describe the entry in 2-3 words.) Instead of a comma separated list using values, display_values and short_descriptions, the following form is also supported: <list_entry value="" display_value="" short_description="" icon="" icon_size="" />
377 ]]></documentation>
378 </annotation>
379 </attribute>
380 <attributeGroup ref="tns:attributes.icon" />
381 <anyAttribute processContents="skip" />
382 </complexType>
383
384 <complexType name="combo">
385 <annotation>
386 <documentation>
387 <p>
388 Displays a multiple choice combo box. key and values are mandatory, text, default, editable, delimiter, values_from, display_values, short_descriptions, use_last_as_default, values_searchable, length, values_no_i18n, values_sort and match is optional.
389 </p>
390 <p>
391 If editable is "true" (default), combo boxes can be edited as if they were text fields (additional to the drop down menu). Non editable combo boxes can only contain one of the specified values.
392 </p>
393 <p>
394 If the key is colour or colour:* or *:colour, a color preview and color picker is added on the right (see #8352).
395 </p>
396 </documentation>
397 </annotation>
398 <!-- use either list_entry's or a combination of values/display_values -->
399 <sequence>
400 <group ref="tns:list_elements" minOccurs="0" maxOccurs="unbounded" />
401 </sequence>
402 <attributeGroup ref="tns:attributes.key" />
403 <attributeGroup ref="tns:attributes.text" />
404 <attributeGroup ref="tns:attributes.icon" />
405 <attributeGroup ref="tns:attributes.values" />
406 <attribute name="use_last_as_default" type="tns:last_default" />
407 <attribute name="editable" type="boolean">
408 <annotation>
409 <documentation>
410 The combo box is read only, which means that the user can only select an item in the list. Default is "true", which means, the user can add other values as text.
411 </documentation>
412 </annotation>
413 </attribute>
414 <attribute name="match" type="tns:match" />
415 <attributeGroup ref="tns:attributes.length" />
416
417 <attribute name="type" use="prohibited" />
418 <attribute name="value" use="prohibited" />
419 <attribute name="name" use="prohibited" />
420 <attribute name="delete-if-empty" use="prohibited" />
421 <attribute name="display-values" use="prohibited" />
422 <anyAttribute processContents="skip" />
423 </complexType>
424
425 <complexType name="multiselect">
426 <!-- use either list_entry's or a combination of values/display_values -->
427 <sequence>
428 <group ref="tns:list_elements" minOccurs="0" maxOccurs="unbounded" />
429 </sequence>
430 <attributeGroup ref="tns:attributes.key" />
431 <attributeGroup ref="tns:attributes.text" />
432 <attributeGroup ref="tns:attributes.icon" />
433 <attributeGroup ref="tns:attributes.values" />
434 <attribute name="use_last_as_default" type="tns:last_default" />
435 <attribute name="match" type="tns:match" />
436
437 <attribute name="type" use="prohibited" />
438 <attribute name="value" use="prohibited" />
439 <attribute name="name" use="prohibited" />
440 <attribute name="delete-if-empty" use="prohibited" />
441 <attribute name="display-values" use="prohibited" />
442 <anyAttribute processContents="skip" />
443 </complexType>
444
445 <complexType name="checkgroup">
446 <annotation>
447 <documentation>
448 To group checks. The columns attribute is required.
449 </documentation>
450 </annotation>
451 <sequence>
452 <choice minOccurs="1" maxOccurs="unbounded">
453 <element name="check" type="tns:check" />
454 </choice>
455 </sequence>
456 <attribute name="columns" type="positiveInteger">
457 <annotation>
458 <documentation><![CDATA[
459 the number of columns of grouped <check />
460 ]]></documentation>
461 </annotation>
462 </attribute>
463 <anyAttribute processContents="skip" />
464 </complexType>
465
466 <complexType name="check">
467 <attributeGroup ref="tns:attributes.key" />
468 <attributeGroup ref="tns:attributes.text" />
469 <attribute name="value_on" type="string">
470 <annotation>
471 <documentation><![CDATA[
472 Specify the true value to be entered in the <key /> tag of a checked <check /> (default is "yes").
473 ]]></documentation>
474 </annotation>
475 </attribute>
476 <attribute name="value_off" type="string">
477 <annotation>
478 <documentation><![CDATA[
479 Specify the false value to be entered in the <key /> tag of a checked <check /> (default is "no").
480 ]]></documentation>
481 </annotation>
482 </attribute>
483 <attribute name="disable_off" type="boolean">
484 <annotation>
485 <documentation><![CDATA[
486 Whether the off value of a <check /> is disabled in the dialog, i.e., only unset or "yes" are provided.
487 ]]></documentation>
488 </annotation>
489 </attribute>
490 <attribute name="match" type="tns:match" />
491 <attributeGroup ref="tns:attributes.icon" />
492
493 <attribute name="name" use="prohibited" />
494 <attribute name="type" use="prohibited" />
495 <attribute name="value" use="prohibited" />
496 <anyAttribute processContents="skip" />
497 </complexType>
498
499 <simpleType name="check_default">
500 <restriction base="string">
501 <enumeration value="on" />
502 <enumeration value="off" />
503 </restriction>
504 </simpleType>
505
506 <simpleType name="last_default">
507 <annotation>
508 <documentation><![CDATA[
509 For <combo />, <multiselect /> or <text /> fields the last used value is used as default. Using "force" enforces this behavior also for already tagged objects. Default is "false".
510 ]]></documentation>
511 </annotation>
512 <restriction base="string">
513 <enumeration value="true" />
514 <enumeration value="false" />
515 <enumeration value="force" />
516 </restriction>
517 </simpleType>
518
519 <simpleType name="match">
520 <annotation>
521 <documentation>
522 <p>
523 Allows to change the matching process, i.e., determining whether the tags of an OSM object fit into this preset. If a preset fits then it is linked in the Tags/Membership dialog.
524 </p>
525
526 <ul>
527 <li>none: neutral, i.e., do not consider this item for matching</li>
528 <li>key!: positive if key matches, negative otherwise</li>
529 <li>keyvalue: positive if key and value matches, neutral otherwise</li>
530 <li>keyvalue!: positive if key and value matches, negative otherwise</li>
531 </ul>
532
533 <p><![CDATA[
534 Note: For a match, at least one positive and no negative is required. Default is "keyvalue!" for <key> and "none" for <text />, <combo />, <multiselect /> and <check />.
535 ]]></p>
536 </documentation>
537 </annotation>
538 <restriction base="string">
539 <enumeration value="none" />
540 <enumeration value="key" />
541 <enumeration value="key!" />
542 <enumeration value="keyvalue" />
543 <enumeration value="keyvalue!" />
544 </restriction>
545 </simpleType>
546
547 <complexType name="roles">
548 <group ref="tns:roles_elements" maxOccurs="unbounded" />
549 </complexType>
550
551 <group name="roles_elements">
552 <choice>
553 <element name="role" type="tns:role" minOccurs="1" maxOccurs="unbounded" />
554 <element name="reference" type="tns:reference" />
555 </choice>
556 </group>
557
558 <complexType name="role">
559 <annotation>
560 <documentation>
561 To specify possible roles of members in relations. The key attribute is required, text, requisite, count, type and member_expression are optional.
562 </documentation>
563 </annotation>
564 <attribute name="key" type="string">
565 <annotation>
566 <documentation>
567 The role name used in a relation.
568 </documentation>
569 </annotation>
570 </attribute>
571 <attributeGroup ref="tns:attributes.text" />
572 <attribute name="requisite" type="tns:role_requisite" />
573 <attribute name="type" type="string" />
574 <attribute name="count" type="integer" />
575 <attribute name="member_expression" type="string" />
576 <attribute name="regexp" type="boolean" />
577 <anyAttribute processContents="skip" />
578 </complexType>
579
580 <simpleType name="role_requisite">
581 <annotation>
582 <documentation>
583 If a relation member is optional or required. Default is "optional".
584 </documentation>
585 </annotation>
586 <restriction base="string">
587 <enumeration value="required" />
588 <enumeration value="optional" />
589 </restriction>
590 </simpleType>
591
592 <!-- Types and documentation for attributes -->
593
594 <attributeGroup name="attributes.name">
595 <attribute name="name" type="string" use="required">
596 <annotation>
597 <documentation>
598 Specify a name for an item. This name will be used in the GUI to display the tagging preset.
599 </documentation>
600 </annotation>
601 </attribute>
602 <attribute name="name_context" type="string">
603 <annotation>
604 <documentation>
605 Translation context for name attribute to separate equals words with different meaning (not required for in-file translations).
606 </documentation>
607 </annotation>
608 </attribute>
609 </attributeGroup>
610
611 <attributeGroup name="attributes.key">
612 <attribute name="key" type="string" use="required">
613 <annotation>
614 <documentation>
615 This specifies the property key that will be modified by the item.
616 </documentation>
617 </annotation>
618 </attribute>
619 <attribute name="default" type="string">
620 <annotation>
621 <documentation><![CDATA[
622 An explicitly declared default value for the item. This value is only applied through a preset when the object the preset is applied to has zero keys. If no value for default is specified, no value is set to the key. Used in >check /<, >text /<, >combo /< and >multiselect /<.
623 ]]></documentation>
624 </annotation>
625 </attribute>
626 </attributeGroup>
627
628 <attributeGroup name="attributes.text">
629 <attribute name="text" type="string">
630 <annotation>
631 <documentation><![CDATA[
632 The description, that will be displayed before (after in case of <check />) the gui element. Also used for <label> and <optional>.
633 ]]></documentation>
634 </annotation>
635 </attribute>
636 <attribute name="text_context" type="string">
637 <annotation>
638 <documentation>
639 Translation context for text attribute to separate equals words with different meaning (not required for in-file translations).
640 </documentation>
641 </annotation>
642 </attribute>
643 </attributeGroup>
644
645 <attributeGroup name="attributes.values">
646 <attribute name="values" type="string">
647 <annotation>
648 <documentation>
649 A list of entries. The list has to be separated by commas (for the combo box) or by the specified delimiter (for the multiselect). If a value contains the delimiter, the delimiter may be escaped with a backslash. If a value contains a backslash, it must also be escaped with a backslash.
650 </documentation>
651 </annotation>
652 </attribute>
653 <attribute name="values_from" type="string">
654 <annotation>
655 <documentation>
656 To use instead of values if the list of values has to be obtained with a Java method of this form: public static String[] getValues(); The value must be: "full.package.name.ClassName#methodName".
657 </documentation>
658 </annotation>
659 </attribute>
660 <attribute name="values_context" type="string">
661 <annotation>
662 <documentation>
663 Translation context for values attribute to separate equals words with different meaning (not required for in-file translations).
664 </documentation>
665 </annotation>
666 </attribute>
667 <attribute name="values_no_i18n" type="boolean">
668 <annotation>
669 <documentation>
670 Disables internationalisation for value to avoid mistakes, see #11696. Default is "false". (Useful e.g. for opening hours or brand names.)
671 </documentation>
672 </annotation>
673 </attribute>
674 <attribute name="values_sort" type="boolean">
675 <annotation>
676 <documentation>
677 Values of are sorted alphabetic in every language. With this attribute you can disable the alphabetic sorting if the values should keep the given order, see #5509 and #11926. (In the JOSM internal preset this is used e.g. for the keys tracktype, direction, network, smoothness, visibility or trail_visibility.) Default is "true".<br />
678 Users can globally disable sorting with the preference key taggingpreset.sortvalues.
679 </documentation>
680 </annotation>
681 </attribute>
682 <attribute name="display_values" type="string">
683 <annotation>
684 <documentation>
685 A list of entries that is displayed to the user. Must be the same number and order of entries as values and editable must be "false" or not specified. For the delimiter character and escaping, see the remarks at values.
686 </documentation>
687 </annotation>
688 </attribute>
689 <attribute name="values_searchable" type="boolean">
690 <annotation>
691 <documentation>
692 Whether to search in (display_)values when searching for presets.
693 </documentation>
694 </annotation>
695 </attribute>
696 <attribute name="delimiter" type="string">
697 <annotation>
698 <documentation><![CDATA[
699 The character that separates values. In case of <combo /> the default is comma. In case of <multiselect /> the default is semicolon and this will also be used to separate selected values in the tag.
700 ]]></documentation>
701 </annotation>
702 </attribute>
703 </attributeGroup>
704
705 <attributeGroup name="attributes.icon">
706 <attribute name="icon" type="string">
707 <annotation>
708 <documentation><![CDATA[
709 A name or link to an icon. The image will be used as icon to display in the selection list and when adding the preset to the toolbar. Icons can also be used in <item>, <label /> and <list_entry />. The icon should be quadratic in size. See Icon handling how icons can be specified.
710 ]]></documentation>
711 </annotation>
712 </attribute>
713 <attribute name="icon_size" type="integer">
714 <annotation>
715 <documentation><![CDATA[
716 The maximal size of an icon in px. If no value is given, default is 16 for <label /> and the default icon size for <list_entry /> (in <combo> and <multiselect>).
717 ]]></documentation>
718 </annotation>
719 </attribute>
720 </attributeGroup>
721
722 <attributeGroup name="attributes.length">
723 <attribute name="length" type="positiveInteger">
724 <annotation>
725 <documentation><![CDATA[
726 The length of a <text /> or <combo /> box (number of characters allowed).
727 ]]></documentation>
728 </annotation>
729 </attribute>
730 </attributeGroup>
731
732</schema>
Note: See TracBrowser for help on using the repository browser.