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

Last change on this file since 14505 was 11607, checked in by joerg, 11 years ago

map-icons/tools: move all scripts into there own tools directory

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.