source: subversion/applications/share/map-icons/create_osm.xslt @ 10274

Last change on this file since 10274 was 6884, checked in by ulf, 12 years ago

copy over the existing icon hierarchy into something "map features" like - using an XSLT transformation of JOSM's elemstyles.xml to create a "copy shell script"

File size: 1.0 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2<!-- for details, please have a look at the corresponding .sh file -->
3<xsl:stylesheet
4    version="1.0"
5    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6    xmlns:html="http://www.w3.org/1999/xhtml"
7    xmlns="http://www.w3.org/1999/xhtml"
8    exclude-result-prefixes="html"
9>
10 
11    <xsl:output
12        method="text"
13        doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
14        doctype-public="-//W3C//DTD XHTML 1.1//EN"
15    />
16 
17    <xsl:template match="rules">
18# automatically generated script, do not edit!
19                <xsl:for-each select="rule">
20                        <xsl:for-each select="icon">
21mkdir --parents <xsl:value-of select = "$dest_dir" />/<xsl:value-of select="../condition/@k" />
22cp <xsl:value-of select = "$src_dir" />/<xsl:value-of select="@src" /> <xsl:text disable-output-escaping="yes"> </xsl:text> <xsl:value-of select = "$dest_dir" />/<xsl:value-of select="../condition/@k" />/<xsl:value-of select="../condition/@v" />.png
23                        </xsl:for-each>
24                </xsl:for-each>
25    </xsl:template>
26 
27</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.