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

Last change on this file since 17610 was 17610, checked in by simon04, 5 years ago

see #18949 - Tagging presets: value_template="..." for <text>

Use value_template to generate the value automatically based on other <text> values of this preset. For instance, "Bus {ref}: {from} → {to}" can be used to generate the name of a bus route relation.

  • Property svn:eol-style set to native
File size: 32.7 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="preset_name_label" type="boolean">
159 <annotation>
160 <documentation>
161 Whether to insert "[preset name]" label in dialog (defaults to "false" for backward-compatibility on external presets).
162 </documentation>
163 </annotation>
164 </attribute>
165
166 <attribute name="text" use="prohibited" />
167 <anyAttribute processContents="skip" />
168 </complexType>
169
170 <complexType name="optional">
171 <annotation>
172 <documentation><![CDATA[
173 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 />
174 ]]></documentation>
175 </annotation>
176 <group ref="tns:optional_elements" maxOccurs="unbounded" />
177 <attributeGroup ref="tns:attributes.text" />
178 </complexType>
179
180 <complexType name="chunk">
181 <annotation>
182 <documentation>
183 To define a template of elements for later (repeated) use. The id attribute is mandatory.
184 </documentation>
185 </annotation>
186 <choice minOccurs="1" maxOccurs="1">
187 <sequence>
188 <choice minOccurs="1" maxOccurs="unbounded">
189 <group ref="tns:optional_elements" />
190 <element name="key" type="tns:key" />
191 <element name="optional" type="tns:optional" minOccurs="0" />
192 <element name="roles" type="tns:roles" minOccurs="0" />
193 </choice>
194 </sequence>
195 <sequence>
196 <!-- Cannot use tns:list_elements here because reference is present both in optional_elements and list_elements
197 so it violates cos-nonambig: Unique Particle Attribution :
198 <group ref="tns:list_elements" minOccurs="1" maxOccurs="unbounded" />-->
199 <element name="list_entry" type="tns:list_entry" minOccurs="1" maxOccurs="unbounded" />
200 </sequence>
201 <sequence>
202 <element name="role" type="tns:role" minOccurs="1" maxOccurs="unbounded" />
203 </sequence>
204 </choice>
205 <attribute name="id" type="ID" use="required">
206 <annotation>
207 <documentation><![CDATA[
208 The unique identifier for this <chunk>.
209 ]]></documentation>
210 </annotation>
211 </attribute>
212 </complexType>
213
214 <complexType name="reference">
215 <attribute name="ref" type="IDREF" use="required" />
216 </complexType>
217
218 <group name="optional_elements">
219 <choice>
220 <element name="label" type="tns:label" />
221 <element name="space" type="tns:space" />
222 <element name="link" type="tns:link" />
223 <element name="preset_link" type="tns:preset_link" />
224 <element name="text" type="tns:text" />
225 <element name="combo" type="tns:combo" />
226 <element name="multiselect" type="tns:multiselect" />
227 <element name="checkgroup" type="tns:checkgroup" />
228 <element name="check" type="tns:check" />
229 <element name="item_separator" type="tns:separator" />
230 <element name="reference" type="tns:reference" />
231 </choice>
232 </group>
233
234 <group name="list_elements">
235 <choice>
236 <element name="list_entry" type="tns:list_entry" />
237 <element name="reference" type="tns:reference" />
238 </choice>
239 </group>
240
241 <complexType name="key">
242 <annotation>
243 <documentation>
244 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.
245 </documentation>
246 </annotation>
247 <attribute name="key" type="string" use="required">
248 <annotation>
249 <documentation>
250 This specifies the property key that will be modified by the item.
251 </documentation>
252 </annotation>
253 </attribute>
254 <attribute name="value" type="string">
255 <annotation>
256 <documentation><![CDATA[
257 Specify a value to be entered in the <key> tag.
258 ]]></documentation>
259 </annotation>
260 </attribute>
261 <attribute name="match" type="tns:match" />
262 </complexType>
263
264 <complexType name="link">
265 <annotation>
266 <documentation>
267 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.
268 </documentation>
269 </annotation>
270 <attribute name="wiki" type="string" />
271 <attribute name="href" type="string" />
272 <attributeGroup ref="tns:attributes.text" />
273 <attributeGroup ref="tns:attributes.icon" />
274
275 <attribute name="name" use="prohibited" />
276 <anyAttribute processContents="skip" />
277 </complexType>
278
279 <complexType name="preset_link">
280 <annotation>
281 <documentation><![CDATA[
282 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.
283 ]]></documentation>
284 </annotation>
285 <attribute name="preset_name" type="string" use="required">
286 <annotation>
287 <documentation>
288 The exact name of the preset to link to.
289 </documentation>
290 </annotation>
291 </attribute>
292 <attributeGroup ref="tns:attributes.text" />
293 <attribute name="name" use="prohibited" />
294 </complexType>
295
296 <complexType name="label">
297 <annotation>
298 <documentation>
299 Labels are static texts for display. text is a required attribute, icon and icon_size are optional.
300 </documentation>
301 </annotation>
302 <attributeGroup ref="tns:attributes.text" />
303 <attributeGroup ref="tns:attributes.icon" />
304
305 <attribute name="name" use="prohibited" />
306 <anyAttribute processContents="skip" />
307 </complexType>
308
309 <complexType name="space">
310 <annotation>
311 <documentation>
312 Add some space (i.e. a newline).
313 </documentation>
314 </annotation>
315 </complexType>
316
317 <complexType name="text">
318 <attributeGroup ref="tns:attributes.key" />
319 <attributeGroup ref="tns:attributes.text" />
320 <attributeGroup ref="tns:attributes.icon" />
321 <attribute name="use_last_as_default" type="tns:last_default" />
322 <attribute name="auto_increment" type="string">
323 <annotation>
324 <documentation><![CDATA[
325 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.
326 ]]></documentation>
327 </annotation>
328 </attribute>
329 <attribute name="match" type="tns:match" />
330 <attributeGroup ref="tns:attributes.length" />
331 <attribute name="alternative_autocomplete_keys" type="string">
332 <annotation>
333 <documentation><![CDATA[
334 A comma separated list of alternative keys to use for auto completion of <text>.
335 ]]></documentation>
336 </annotation>
337 </attribute>
338 <attribute name="value_template" type="string">
339 <annotation>
340 <documentation><![CDATA[
341 A template to generate the value automatically based on other <text> values of this preset.
342 For instance, "Bus {ref}: {from} → {to}" can be used to generate the name of a bus route relation.
343 ]]></documentation>
344 </annotation>
345 </attribute>
346
347 <attribute name="type" use="prohibited" />
348 <attribute name="name" use="prohibited" />
349 <attribute name="value" use="prohibited" />
350 <attribute name="values" use="prohibited" />
351 <anyAttribute processContents="skip" />
352 </complexType>
353
354 <complexType name="list_entry">
355 <annotation>
356 <documentation><![CDATA[
357 Used in <combo/> and <multiselect/>. More information see short_descriptions below. The attributes are value, display_value, short_description, icon and icon_size.
358 ]]></documentation>
359 </annotation>
360 <attribute name="value" type="string" use="required" />
361 <attribute name="value_context" type="string" />
362 <attribute name="display_value" type="string" />
363 <attribute name="short_description" type="string">
364 <annotation>
365 <documentation><![CDATA[
366 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="" />
367 ]]></documentation>
368 </annotation>
369 </attribute>
370 <attributeGroup ref="tns:attributes.icon" />
371 <anyAttribute processContents="skip" />
372 </complexType>
373
374 <complexType name="combo">
375 <annotation>
376 <documentation>
377 <p>
378 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.
379 </p>
380 <p>
381 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.
382 </p>
383 <p>
384 If the key is colour or colour:* or *:colour, a color preview and color picker is added on the right (see #8352).
385 </p>
386 </documentation>
387 </annotation>
388 <!-- use either list_entry's or a combination of values/display_values -->
389 <sequence>
390 <group ref="tns:list_elements" minOccurs="0" maxOccurs="unbounded" />
391 </sequence>
392 <attributeGroup ref="tns:attributes.key" />
393 <attributeGroup ref="tns:attributes.text" />
394 <attributeGroup ref="tns:attributes.icon" />
395 <attributeGroup ref="tns:attributes.values" />
396 <attribute name="use_last_as_default" type="tns:last_default" />
397 <attribute name="editable" type="boolean">
398 <annotation>
399 <documentation>
400 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. Feature is broken, see #6157.
401 </documentation>
402 </annotation>
403 </attribute>
404 <attribute name="match" type="tns:match" />
405 <attributeGroup ref="tns:attributes.length" />
406
407 <attribute name="type" use="prohibited" />
408 <attribute name="value" use="prohibited" />
409 <attribute name="name" use="prohibited" />
410 <attribute name="delete-if-empty" use="prohibited" />
411 <attribute name="display-values" use="prohibited" />
412 <anyAttribute processContents="skip" />
413 </complexType>
414
415 <complexType name="multiselect">
416 <!-- use either list_entry's or a combination of values/display_values -->
417 <sequence>
418 <group ref="tns:list_elements" minOccurs="0" maxOccurs="unbounded" />
419 </sequence>
420 <attributeGroup ref="tns:attributes.key" />
421 <attributeGroup ref="tns:attributes.text" />
422 <attributeGroup ref="tns:attributes.icon" />
423 <attributeGroup ref="tns:attributes.values" />
424 <attribute name="use_last_as_default" type="tns:last_default" />
425 <attribute name="match" type="tns:match" />
426
427 <attribute name="type" use="prohibited" />
428 <attribute name="value" use="prohibited" />
429 <attribute name="name" use="prohibited" />
430 <attribute name="delete-if-empty" use="prohibited" />
431 <attribute name="display-values" use="prohibited" />
432 <anyAttribute processContents="skip" />
433 </complexType>
434
435 <complexType name="checkgroup">
436 <annotation>
437 <documentation>
438 To group checks. The columns attribute is required.
439 </documentation>
440 </annotation>
441 <sequence>
442 <choice minOccurs="1" maxOccurs="unbounded">
443 <element name="check" type="tns:check" />
444 </choice>
445 </sequence>
446 <attribute name="columns" type="positiveInteger">
447 <annotation>
448 <documentation><![CDATA[
449 the number of columns of grouped <check />
450 ]]></documentation>
451 </annotation>
452 </attribute>
453 <anyAttribute processContents="skip" />
454 </complexType>
455
456 <complexType name="check">
457 <attributeGroup ref="tns:attributes.key" />
458 <attributeGroup ref="tns:attributes.text" />
459 <attribute name="value_on" type="string">
460 <annotation>
461 <documentation><![CDATA[
462 Specify the true value to be entered in the <key /> tag of a checked <check /> (default is "yes").
463 ]]></documentation>
464 </annotation>
465 </attribute>
466 <attribute name="value_off" type="string">
467 <annotation>
468 <documentation><![CDATA[
469 Specify the false value to be entered in the <key /> tag of a checked <check /> (default is "no").
470 ]]></documentation>
471 </annotation>
472 </attribute>
473 <attribute name="disable_off" type="boolean">
474 <annotation>
475 <documentation><![CDATA[
476 Whether the off value of a <check /> is disabled in the dialog, i.e., only unset or "yes" are provided.
477 ]]></documentation>
478 </annotation>
479 </attribute>
480 <attribute name="match" type="tns:match" />
481 <attributeGroup ref="tns:attributes.icon" />
482
483 <attribute name="name" use="prohibited" />
484 <attribute name="type" use="prohibited" />
485 <attribute name="value" use="prohibited" />
486 <anyAttribute processContents="skip" />
487 </complexType>
488
489 <simpleType name="check_default">
490 <restriction base="string">
491 <enumeration value="on" />
492 <enumeration value="off" />
493 </restriction>
494 </simpleType>
495
496 <simpleType name="last_default">
497 <annotation>
498 <documentation><![CDATA[
499 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".
500 ]]></documentation>
501 </annotation>
502 <restriction base="string">
503 <enumeration value="true" />
504 <enumeration value="false" />
505 <enumeration value="force" />
506 </restriction>
507 </simpleType>
508
509 <simpleType name="match">
510 <annotation>
511 <documentation>
512 <p>
513 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.
514 </p>
515
516 <ul>
517 <li>none: neutral, i.e., do not consider this item for matching</li>
518 <li>key!: positive if key matches, negative otherwise</li>
519 <li>keyvalue: positive if key and value matches, neutral otherwise</li>
520 <li>keyvalue!: positive if key and value matches, negative otherwise</li>
521 </ul>
522
523 <p><![CDATA[
524 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 />.
525 ]]></p>
526 </documentation>
527 </annotation>
528 <restriction base="string">
529 <enumeration value="none" />
530 <enumeration value="key" />
531 <enumeration value="key!" />
532 <enumeration value="keyvalue" />
533 <enumeration value="keyvalue!" />
534 </restriction>
535 </simpleType>
536
537 <complexType name="roles">
538 <group ref="tns:roles_elements" maxOccurs="unbounded" />
539 </complexType>
540
541 <group name="roles_elements">
542 <choice>
543 <element name="role" type="tns:role" minOccurs="1" maxOccurs="unbounded" />
544 <element name="reference" type="tns:reference" />
545 </choice>
546 </group>
547
548 <complexType name="role">
549 <annotation>
550 <documentation>
551 To specify possible roles of members in relations. The key attribute is required, text, requisite, count, type and member_expression are optional.
552 </documentation>
553 </annotation>
554 <attribute name="key" type="string">
555 <annotation>
556 <documentation>
557 The role name used in a relation.
558 </documentation>
559 </annotation>
560 </attribute>
561 <attributeGroup ref="tns:attributes.text" />
562 <attribute name="requisite" type="tns:role_requisite" />
563 <attribute name="type" type="string" />
564 <attribute name="count" type="integer" />
565 <attribute name="member_expression" type="string" />
566 <attribute name="regexp" type="boolean" />
567 <anyAttribute processContents="skip" />
568 </complexType>
569
570 <simpleType name="role_requisite">
571 <annotation>
572 <documentation>
573 If a relation member is optional or required. Default is "optional".
574 </documentation>
575 </annotation>
576 <restriction base="string">
577 <enumeration value="required" />
578 <enumeration value="optional" />
579 </restriction>
580 </simpleType>
581
582 <!-- Types and documentation for attributes -->
583
584 <attributeGroup name="attributes.name">
585 <attribute name="name" type="string" use="required">
586 <annotation>
587 <documentation>
588 Specify a name for an item. This name will be used in the GUI to display the tagging preset.
589 </documentation>
590 </annotation>
591 </attribute>
592 <attribute name="name_context" type="string">
593 <annotation>
594 <documentation>
595 Translation context for name attribute to separate equals words with different meaning (not required for in-file translations).
596 </documentation>
597 </annotation>
598 </attribute>
599 </attributeGroup>
600
601 <attributeGroup name="attributes.key">
602 <attribute name="key" type="string" use="required">
603 <annotation>
604 <documentation>
605 This specifies the property key that will be modified by the item.
606 </documentation>
607 </annotation>
608 </attribute>
609 <attribute name="default" type="string">
610 <annotation>
611 <documentation><![CDATA[
612 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 /<.
613 ]]></documentation>
614 </annotation>
615 </attribute>
616 </attributeGroup>
617
618 <attributeGroup name="attributes.text">
619 <attribute name="text" type="string">
620 <annotation>
621 <documentation><![CDATA[
622 The description, that will be displayed before (after in case of <check />) the gui element. Also used for <label> and <optional>.
623 ]]></documentation>
624 </annotation>
625 </attribute>
626 <attribute name="text_context" type="string">
627 <annotation>
628 <documentation>
629 Translation context for text attribute to separate equals words with different meaning (not required for in-file translations).
630 </documentation>
631 </annotation>
632 </attribute>
633 </attributeGroup>
634
635 <attributeGroup name="attributes.values">
636 <attribute name="values" type="string">
637 <annotation>
638 <documentation>
639 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.
640 </documentation>
641 </annotation>
642 </attribute>
643 <attribute name="values_from" type="string">
644 <annotation>
645 <documentation>
646 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".
647 </documentation>
648 </annotation>
649 </attribute>
650 <attribute name="values_context" type="string">
651 <annotation>
652 <documentation>
653 Translation context for values attribute to separate equals words with different meaning (not required for in-file translations).
654 </documentation>
655 </annotation>
656 </attribute>
657 <attribute name="values_no_i18n" type="boolean">
658 <annotation>
659 <documentation>
660 Disables internationalisation for value to avoid mistakes, see #11696. Default is "false". (Useful e.g. for opening hours or brand names.)
661 </documentation>
662 </annotation>
663 </attribute>
664 <attribute name="values_sort" type="boolean">
665 <annotation>
666 <documentation>
667 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 />
668 Users can globally disable sorting with the preference key taggingpreset.sortvalues.
669 </documentation>
670 </annotation>
671 </attribute>
672 <attribute name="display_values" type="string">
673 <annotation>
674 <documentation>
675 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.
676 </documentation>
677 </annotation>
678 </attribute>
679 <attribute name="values_searchable" type="boolean">
680 <annotation>
681 <documentation>
682 Whether to search in (display_)values when searching for presets.
683 </documentation>
684 </annotation>
685 </attribute>
686 <attribute name="delimiter" type="string">
687 <annotation>
688 <documentation><![CDATA[
689 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.
690 ]]></documentation>
691 </annotation>
692 </attribute>
693 </attributeGroup>
694
695 <attributeGroup name="attributes.icon">
696 <attribute name="icon" type="string">
697 <annotation>
698 <documentation><![CDATA[
699 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.
700 ]]></documentation>
701 </annotation>
702 </attribute>
703 <attribute name="icon_size" type="integer">
704 <annotation>
705 <documentation><![CDATA[
706 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>).
707 ]]></documentation>
708 </annotation>
709 </attribute>
710 </attributeGroup>
711
712 <attributeGroup name="attributes.length">
713 <attribute name="length" type="positiveInteger">
714 <annotation>
715 <documentation><![CDATA[
716 The length of a <text /> or <combo /> box (number of characters allowed).
717 ]]></documentation>
718 </annotation>
719 </attribute>
720 </attributeGroup>
721
722</schema>
Note: See TracBrowser for help on using the repository browser.