Changeset 16639 in josm for trunk/resources


Ignore:
Timestamp:
2020-06-14T18:57:36+02:00 (4 years ago)
Author:
simon04
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/tagging-preset.xsd

    r16638 r16639  
    137137        <attribute name="type" type="string">
    138138            <annotation>
    139                 <documentation>
    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 &lt;role&gt; tag to specify which object types are allowed for a specific relation member.
    141                 </documentation>
     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>
    142142            </annotation>
    143143        </attribute>
     
    170170    <complexType name="optional">
    171171        <annotation>
    172             <documentation>
    173                 Used to group some optional elements of an item. The text attribute is optional. If used without text then this is equivalent to &lt;space &gt;&lt;label text="Optional Attributes:" /&gt;&lt;space /&gt;
    174             </documentation>
     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>
    175175        </annotation>
    176176        <group ref="tns:optional_elements" maxOccurs="unbounded" />
     
    205205        <attribute name="id" type="ID" use="required">
    206206            <annotation>
    207                 <documentation>
    208                     The unique identifier for this &gt;chunk&lt;.
    209                 </documentation>
     207                <documentation><![CDATA[
     208                    The unique identifier for this <chunk>.
     209                ]]></documentation>
    210210            </annotation>
    211211        </attribute>
     
    254254        <attribute name="value" type="string">
    255255            <annotation>
    256                 <documentation>
    257                     Specify a value to be entered in the &lt;key&gt; tag.
    258                 </documentation>
     256                <documentation><![CDATA[
     257                    Specify a value to be entered in the <key> tag.
     258                ]]></documentation>
    259259            </annotation>
    260260        </attribute>
     
    278278    <complexType name="preset_link">
    279279        <annotation>
    280             <documentation>
    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 &lt;preset_link /&gt; 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>
     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>
    283283        </annotation>
    284284        <attribute name="preset_name" type="string" use="required">
     
    320320        <attribute name="auto_increment" type="string">
    321321            <annotation>
    322                 <documentation>
    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 &lt;text /&gt; 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>
     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>
    325325            </annotation>
    326326        </attribute>
     
    329329        <attribute name="alternative_autocomplete_keys" type="string">
    330330            <annotation>
    331                 <documentation>
    332                     A comma separated list of alternative keys to use for auto completion of &gt;text&lt;.
    333                 </documentation>
     331                <documentation><![CDATA[
     332                    A comma separated list of alternative keys to use for auto completion of <text<.
     333                ]]></documentation>
    334334            </annotation>
    335335        </attribute>
     
    344344    <complexType name="list_entry">
    345345        <annotation>
    346             <documentation>
    347                 Used in &lt;combo/&gt; and &lt;multiselect/&gt;. More information see short_descriptions below. The attributes are value, display_value, short_description, icon and icon_size.
    348             </documentation>
     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>
    349349        </annotation>
    350350        <attribute name="value" type="string" use="required" />
     
    353353        <attribute name="short_description" type="string">
    354354            <annotation>
    355                 <documentation>
    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: &lt;list_entry value="" display_value="" short_description="" icon="" icon_size="" /&gt;
    357                 </documentation>
     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>
    358358            </annotation>
    359359        </attribute>
     
    434434        <attribute name="columns" type="positiveInteger">
    435435            <annotation>
    436                 <documentation>
    437                     the number of columns of grouped &lt;check /&gt;
    438                 </documentation>
     436                <documentation><![CDATA[
     437                    the number of columns of grouped <check />
     438                ]]></documentation>
    439439            </annotation>
    440440        </attribute>
     
    447447        <attribute name="value_on" type="string">
    448448            <annotation>
    449                 <documentation>
    450                     Specify the true value to be entered in the &lt;key /&gt; tag of a checked &lt;check /&gt; (default is "yes").
    451                 </documentation>
     449                <documentation><![CDATA[
     450                    Specify the true value to be entered in the <key /> tag of a checked <check /> (default is "yes").
     451                ]]></documentation>
    452452            </annotation>
    453453        </attribute>
    454454        <attribute name="value_off" type="string">
    455455            <annotation>
    456                 <documentation>
    457                     Specify the false value to be entered in the &lt;key /&gt; tag of a checked &lt;check /&gt; (default is "no").
    458                 </documentation>
     456                <documentation><![CDATA[
     457                    Specify the false value to be entered in the <key /> tag of a checked <check /> (default is "no").
     458                ]]></documentation>
    459459            </annotation>
    460460        </attribute>
    461461        <attribute name="disable_off" type="boolean">
    462462            <annotation>
    463                 <documentation>
    464                     Whether the off value of a &lt;check /&gt; is disabled in the dialog, i.e., only unset or "yes" are provided.
    465                 </documentation>
     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>
    466466            </annotation>
    467467        </attribute>
     
    484484    <simpleType name="last_default">
    485485        <annotation>
    486             <documentation>
    487                 For &lt;combo /&gt;, &lt;multiselect /&gt; or &lt;text /&gt; fields the last used value is used as default. Using "force" enforces this behavior also for already tagged objects. Default is "false".
    488             </documentation>
     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>
    489489        </annotation>
    490490        <restriction base="string">
     
    509509                </ul>
    510510
    511                 <p>
    512                     Note: For a match, at least one positive and no negative is required. Default is "keyvalue!" for &lt;key&gt; and "none" for &lt;text />, &lt;combo /&gt;, &lt;multiselect /&gt; and &lt;check /&gt;.
    513                 </p>
     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>
    514514            </documentation>
    515515        </annotation>
     
    597597        <attribute name="default" type="string">
    598598            <annotation>
    599                 <documentation>
    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 &gt;check /&lt;, &gt;text /&lt;, &gt;combo /&lt; and &gt;multiselect /&lt;.
    601                 </documentation>
     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>
    602602            </annotation>
    603603        </attribute>
     
    607607        <attribute name="text" type="string">
    608608            <annotation>
    609                 <documentation>
    610                     The description, that will be displayed before (after in case of &gt;check /&lt;) the gui element. Also used for &gt;label&lt; and &gt;optional&lt;.
    611                 </documentation>
     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>
    612612            </annotation>
    613613        </attribute>
     
    674674        <attribute name="delimiter" type="string">
    675675            <annotation>
    676                 <documentation>
    677                     The character that separates values. In case of &lt;combo /&gt; the default is comma. In case of &lt;multiselect /&gt; the default is semicolon and this will also be used to separate selected values in the tag.
    678                 </documentation>
     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>
    679679            </annotation>
    680680        </attribute>
     
    684684        <attribute name="icon" type="string">
    685685            <annotation>
    686                 <documentation>
    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 &gt;item&gt;, &gt;label /&gt; and &gt;list_entry /&gt;. The icon should be quadratic in size. See Icon handling how icons can be specified.
    688                 </documentation>
     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>
    689689            </annotation>
    690690        </attribute>
    691691        <attribute name="icon_size" type="integer">
    692692            <annotation>
    693                 <documentation>
    694                     The maximal size of an icon in px. If no value is given, default is 16 for &gt;label /&gt; and the default icon size for &gt;list_entry /&gt; (in &gt;combo&gt; and &gt;multiselect&gt;).
    695                 </documentation>
     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>
    696696            </annotation>
    697697        </attribute>
     
    701701        <attribute name="length" type="positiveInteger">
    702702            <annotation>
    703                 <documentation>
    704                     The length of a &gt;text /&gt; or &gt;combo /&gt; box (number of characters allowed).
    705                 </documentation>
     703                <documentation><![CDATA[
     704                    The length of a <text /> or <combo /> box (number of characters allowed).
     705                ]]></documentation>
    706706            </annotation>
    707707        </attribute>
Note: See TracChangeset for help on using the changeset viewer.