Changeset 17662 in josm for trunk/resources/data


Ignore:
Timestamp:
2021-03-25T00:28:04+01:00 (5 years ago)
Author:
simon04
Message:

fix #19012 - Tagging presets: additional matching criteria via <item match_expression="...">

File:
1 edited

Legend:

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

    r17610 r17662  
    156156            </annotation>
    157157        </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>
    158167        <attribute name="preset_name_label" type="boolean">
    159168            <annotation>
Note: See TracChangeset for help on using the changeset viewer.