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

Last change on this file since 16754 was 16639, checked in by simon04, 4 years ago

see #19282 - Use CDATA inside tagging-preset.xsd

  • Property svn:eol-style set to native
File size: 32.1 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
274 <attribute name="name" use="prohibited" />
275 <anyAttribute processContents="skip" />
276 </complexType>
277
278 <complexType name="preset_link">
279 <annotation>
280 <documentation><![CDATA[
281 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.
282 ]]></documentation>
283 </annotation>
284 <attribute name="preset_name" type="string" use="required">
285 <annotation>
286 <documentation>
287 The exact name of the preset to link to.
288 </documentation>
289 </annotation>
290 </attribute>
291 <attributeGroup ref="tns:attributes.text" />
292 <attribute name="name" use="prohibited" />
293 </complexType>
294
295 <complexType name="label">
296 <annotation>
297 <documentation>
298 Labels are static texts for display. text is a required attribute, icon and icon_size are optional.
299 </documentation>
300 </annotation>
301 <attributeGroup ref="tns:attributes.text" />
302 <attributeGroup ref="tns:attributes.icon" />
303
304 <attribute name="name" use="prohibited" />
305 <anyAttribute processContents="skip" />
306 </complexType>
307
308 <complexType name="space">
309 <annotation>
310 <documentation>
311 Add some space (i.e. a newline).
312 </documentation>
313 </annotation>
314 </complexType>
315
316 <complexType name="text">
317 <attributeGroup ref="tns:attributes.key" />
318 <attributeGroup ref="tns:attributes.text" />
319 <attribute name="use_last_as_default" type="tns:last_default" />
320 <attribute name="auto_increment" type="string">
321 <annotation>
322 <documentation><![CDATA[
323 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.
324 ]]></documentation>
325 </annotation>
326 </attribute>
327 <attribute name="match" type="tns:match" />
328 <attributeGroup ref="tns:attributes.length" />
329 <attribute name="alternative_autocomplete_keys" type="string">
330 <annotation>
331 <documentation><![CDATA[
332 A comma separated list of alternative keys to use for auto completion of <text<.
333 ]]></documentation>
334 </annotation>
335 </attribute>
336
337 <attribute name="type" use="prohibited" />
338 <attribute name="name" use="prohibited" />
339 <attribute name="value" use="prohibited" />
340 <attribute name="values" use="prohibited" />
341 <anyAttribute processContents="skip" />
342 </complexType>
343
344 <complexType name="list_entry">
345 <annotation>
346 <documentation><![CDATA[
347 Used in <combo/> and <multiselect/>. More information see short_descriptions below. The attributes are value, display_value, short_description, icon and icon_size.
348 ]]></documentation>
349 </annotation>
350 <attribute name="value" type="string" use="required" />
351 <attribute name="value_context" type="string" />
352 <attribute name="display_value" type="string" />
353 <attribute name="short_description" type="string">
354 <annotation>
355 <documentation><![CDATA[
356 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="" />
357 ]]></documentation>
358 </annotation>
359 </attribute>
360 <attributeGroup ref="tns:attributes.icon" />
361 <anyAttribute processContents="skip" />
362 </complexType>
363
364 <complexType name="combo">
365 <annotation>
366 <documentation>
367 <p>
368 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.
369 </p>
370 <p>
371 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.
372 </p>
373 <p>
374 If the key is colour or colour:* or *:colour, a color preview and color picker is added on the right (see #8352).
375 </p>
376 </documentation>
377 </annotation>
378 <!-- use either list_entry's or a combination of values/display_values -->
379 <sequence>
380 <group ref="tns:list_elements" minOccurs="0" maxOccurs="unbounded" />
381 </sequence>
382 <attributeGroup ref="tns:attributes.key" />
383 <attributeGroup ref="tns:attributes.text" />
384 <attributeGroup ref="tns:attributes.values" />
385 <attribute name="use_last_as_default" type="tns:last_default" />
386 <attribute name="editable" type="boolean">
387 <annotation>
388 <documentation>
389 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.
390 </documentation>
391 </annotation>
392 </attribute>
393 <attribute name="match" type="tns:match" />
394 <attributeGroup ref="tns:attributes.length" />
395
396 <attribute name="type" use="prohibited" />
397 <attribute name="value" use="prohibited" />
398 <attribute name="name" use="prohibited" />
399 <attribute name="delete-if-empty" use="prohibited" />
400 <attribute name="display-values" use="prohibited" />
401 <anyAttribute processContents="skip" />
402 </complexType>
403
404 <complexType name="multiselect">
405 <!-- use either list_entry's or a combination of values/display_values -->
406 <sequence>
407 <group ref="tns:list_elements" minOccurs="0" maxOccurs="unbounded" />
408 </sequence>
409 <attributeGroup ref="tns:attributes.key" />
410 <attributeGroup ref="tns:attributes.text" />
411 <attributeGroup ref="tns:attributes.values" />
412 <attribute name="use_last_as_default" type="tns:last_default" />
413 <attribute name="match" type="tns:match" />
414
415 <attribute name="type" use="prohibited" />
416 <attribute name="value" use="prohibited" />
417 <attribute name="name" use="prohibited" />
418 <attribute name="delete-if-empty" use="prohibited" />
419 <attribute name="display-values" use="prohibited" />
420 <anyAttribute processContents="skip" />
421 </complexType>
422
423 <complexType name="checkgroup">
424 <annotation>
425 <documentation>
426 To group checks. The columns attribute is required.
427 </documentation>
428 </annotation>
429 <sequence>
430 <choice minOccurs="1" maxOccurs="unbounded">
431 <element name="check" type="tns:check" />
432 </choice>
433 </sequence>
434 <attribute name="columns" type="positiveInteger">
435 <annotation>
436 <documentation><![CDATA[
437 the number of columns of grouped <check />
438 ]]></documentation>
439 </annotation>
440 </attribute>
441 <anyAttribute processContents="skip" />
442 </complexType>
443
444 <complexType name="check">
445 <attributeGroup ref="tns:attributes.key" />
446 <attributeGroup ref="tns:attributes.text" />
447 <attribute name="value_on" type="string">
448 <annotation>
449 <documentation><![CDATA[
450 Specify the true value to be entered in the <key /> tag of a checked <check /> (default is "yes").
451 ]]></documentation>
452 </annotation>
453 </attribute>
454 <attribute name="value_off" type="string">
455 <annotation>
456 <documentation><![CDATA[
457 Specify the false value to be entered in the <key /> tag of a checked <check /> (default is "no").
458 ]]></documentation>
459 </annotation>
460 </attribute>
461 <attribute name="disable_off" type="boolean">
462 <annotation>
463 <documentation><![CDATA[
464 Whether the off value of a <check /> is disabled in the dialog, i.e., only unset or "yes" are provided.
465 ]]></documentation>
466 </annotation>
467 </attribute>
468 <attribute name="match" type="tns:match" />
469 <attributeGroup ref="tns:attributes.icon" />
470
471 <attribute name="name" use="prohibited" />
472 <attribute name="type" use="prohibited" />
473 <attribute name="value" use="prohibited" />
474 <anyAttribute processContents="skip" />
475 </complexType>
476
477 <simpleType name="check_default">
478 <restriction base="string">
479 <enumeration value="on" />
480 <enumeration value="off" />
481 </restriction>
482 </simpleType>
483
484 <simpleType name="last_default">
485 <annotation>
486 <documentation><![CDATA[
487 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".
488 ]]></documentation>
489 </annotation>
490 <restriction base="string">
491 <enumeration value="true" />
492 <enumeration value="false" />
493 <enumeration value="force" />
494 </restriction>
495 </simpleType>
496
497 <simpleType name="match">
498 <annotation>
499 <documentation>
500 <p>
501 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.
502 </p>
503
504 <ul>
505 <li>none: neutral, i.e., do not consider this item for matching</li>
506 <li>key!: positive if key matches, negative otherwise</li>
507 <li>keyvalue: positive if key and value matches, neutral otherwise</li>
508 <li>keyvalue!: positive if key and value matches, negative otherwise</li>
509 </ul>
510
511 <p><![CDATA[
512 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 />.
513 ]]></p>
514 </documentation>
515 </annotation>
516 <restriction base="string">
517 <enumeration value="none" />
518 <enumeration value="key" />
519 <enumeration value="key!" />
520 <enumeration value="keyvalue" />
521 <enumeration value="keyvalue!" />
522 </restriction>
523 </simpleType>
524
525 <complexType name="roles">
526 <group ref="tns:roles_elements" maxOccurs="unbounded" />
527 </complexType>
528
529 <group name="roles_elements">
530 <choice>
531 <element name="role" type="tns:role" minOccurs="1" maxOccurs="unbounded" />
532 <element name="reference" type="tns:reference" />
533 </choice>
534 </group>
535
536 <complexType name="role">
537 <annotation>
538 <documentation>
539 To specify possible roles of members in relations. The key attribute is required, text, requisite, count, type and member_expression are optional.
540 </documentation>
541 </annotation>
542 <attribute name="key" type="string">
543 <annotation>
544 <documentation>
545 The role name used in a relation.
546 </documentation>
547 </annotation>
548 </attribute>
549 <attributeGroup ref="tns:attributes.text" />
550 <attribute name="requisite" type="tns:role_requisite" />
551 <attribute name="type" type="string" />
552 <attribute name="count" type="integer" />
553 <attribute name="member_expression" type="string" />
554 <attribute name="regexp" type="boolean" />
555 <anyAttribute processContents="skip" />
556 </complexType>
557
558 <simpleType name="role_requisite">
559 <annotation>
560 <documentation>
561 If a relation member is optional or required. Default is "optional".
562 </documentation>
563 </annotation>
564 <restriction base="string">
565 <enumeration value="required" />
566 <enumeration value="optional" />
567 </restriction>
568 </simpleType>
569
570 <!-- Types and documentation for attributes -->
571
572 <attributeGroup name="attributes.name">
573 <attribute name="name" type="string" use="required">
574 <annotation>
575 <documentation>
576 Specify a name for an item. This name will be used in the GUI to display the tagging preset.
577 </documentation>
578 </annotation>
579 </attribute>
580 <attribute name="name_context" type="string">
581 <annotation>
582 <documentation>
583 Translation context for name attribute to separate equals words with different meaning (not required for in-file translations).
584 </documentation>
585 </annotation>
586 </attribute>
587 </attributeGroup>
588
589 <attributeGroup name="attributes.key">
590 <attribute name="key" type="string" use="required">
591 <annotation>
592 <documentation>
593 This specifies the property key that will be modified by the item.
594 </documentation>
595 </annotation>
596 </attribute>
597 <attribute name="default" type="string">
598 <annotation>
599 <documentation><![CDATA[
600 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 /<.
601 ]]></documentation>
602 </annotation>
603 </attribute>
604 </attributeGroup>
605
606 <attributeGroup name="attributes.text">
607 <attribute name="text" type="string">
608 <annotation>
609 <documentation><![CDATA[
610 The description, that will be displayed before (after in case of <check />) the gui element. Also used for <label> and <optional>.
611 ]]></documentation>
612 </annotation>
613 </attribute>
614 <attribute name="text_context" type="string">
615 <annotation>
616 <documentation>
617 Translation context for text attribute to separate equals words with different meaning (not required for in-file translations).
618 </documentation>
619 </annotation>
620 </attribute>
621 </attributeGroup>
622
623 <attributeGroup name="attributes.values">
624 <attribute name="values" type="string">
625 <annotation>
626 <documentation>
627 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.
628 </documentation>
629 </annotation>
630 </attribute>
631 <attribute name="values_from" type="string">
632 <annotation>
633 <documentation>
634 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".
635 </documentation>
636 </annotation>
637 </attribute>
638 <attribute name="values_context" type="string">
639 <annotation>
640 <documentation>
641 Translation context for values attribute to separate equals words with different meaning (not required for in-file translations).
642 </documentation>
643 </annotation>
644 </attribute>
645 <attribute name="values_no_i18n" type="boolean">
646 <annotation>
647 <documentation>
648 Disables internationalisation for value to avoid mistakes, see #11696. Default is "false". (Useful e.g. for opening hours or brand names.)
649 </documentation>
650 </annotation>
651 </attribute>
652 <attribute name="values_sort" type="boolean">
653 <annotation>
654 <documentation>
655 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 />
656 Users can globally disable sorting with the preference key taggingpreset.sortvalues.
657 </documentation>
658 </annotation>
659 </attribute>
660 <attribute name="display_values" type="string">
661 <annotation>
662 <documentation>
663 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.
664 </documentation>
665 </annotation>
666 </attribute>
667 <attribute name="values_searchable" type="boolean">
668 <annotation>
669 <documentation>
670 Whether to search in (display_)values when searching for presets.
671 </documentation>
672 </annotation>
673 </attribute>
674 <attribute name="delimiter" type="string">
675 <annotation>
676 <documentation><![CDATA[
677 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.
678 ]]></documentation>
679 </annotation>
680 </attribute>
681 </attributeGroup>
682
683 <attributeGroup name="attributes.icon">
684 <attribute name="icon" type="string">
685 <annotation>
686 <documentation><![CDATA[
687 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.
688 ]]></documentation>
689 </annotation>
690 </attribute>
691 <attribute name="icon_size" type="integer">
692 <annotation>
693 <documentation><![CDATA[
694 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>).
695 ]]></documentation>
696 </annotation>
697 </attribute>
698 </attributeGroup>
699
700 <attributeGroup name="attributes.length">
701 <attribute name="length" type="positiveInteger">
702 <annotation>
703 <documentation><![CDATA[
704 The length of a <text /> or <combo /> box (number of characters allowed).
705 ]]></documentation>
706 </annotation>
707 </attribute>
708 </attributeGroup>
709
710</schema>
Note: See TracBrowser for help on using the repository browser.