[[TranslatedPages(outdated=The preset syntax has changed and the copy from XML files needs to be joined with normal description)]] [[PageOutline(2-10,Table of Contents)]] = Tagging Presets = JOSM supports distributed tagging presets. This is a XML config file that describes a GUI for entering tags (or properties, annotations, sometimes called map features). The XML files can be placed anywhere in the web or at the users local file system. Presets can be added by the users at a central page [wiki:Presets]. == Installing presets == Open the [Help/Action/Preferences preferences window], click [[Image(source:trunk/images/preferences/map.png,20)]] map settings and select third tab [Help/Preferences/Map#TaggingPresets "Tagging Presets"]. ---- == Develop a new preset – Example == [[Image(tagging_screenshot.png,align=right)]] {{{ #!xml }}} == Develop a new preset – Add to the list of available presets == See [[Presets]]. == Develop a new preset – XML Format description == The tagging preset description is in a very simple XML format. See the **[source:trunk/data/defaultpresets.xml defaultpresets.xml]** for an example covering all possibilities. The full XSD schema is available at the namespace URI (http://josm.openstreetmap.de/tagging-preset-1.0) as well as [source:trunk/data/tagging-preset.xsd the source repository]. ---- == Develop a new preset – XML Format description (outdated!) == === Tags === ==== The document prolog ==== '''''':: Has to be the main tag of the file. Supports following attributes * '''xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"''' * '''author''' - the name of the author * '''version''' - a version of the file * '''description''' (i18n) - description what the file contains * '''shortdescription''' (i18n) - short overview description * '''link''' (i18n) - web link to further details * '''icon''' - informational icon for the preset ==== Comments ==== '''''':: The document can contain embedded comments. ==== Menu creation ==== '''''':: Used to group items in sub menus. ''name'' is required, ''icon'' is optional attribute. '''''':: Every item is one annotation set to select from. ''name'' is required, ''type'' is recommended, ''icon'' is optional attribute. '''''':: Insert a line separator into the menu. ==== Create instructions for the user ==== '''