[[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 of the preset * '''version''' - the version number of the file. For automatical version adjustment of presets managed in this wiki you can use two internal variables: `[[revision]]` (the latest version number of the wiki page) and `[[date]]` (the date of the last edit). * '''description''' (i18n) - description what the file contains * '''shortdescription''' (i18n) - short overview description * '''link''' (i18n) - web link to further details (optional) * '''icon''' - informational icon for the whole preset. (For presets managed in this wiki this is nedded to display the icon in the table at [[Presets]].) (i18n) means the values may also be localized (e.g. de.link). ==== 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 ==== '''