Cruiser
4
Die XSLT Datei müsste dann ungefähr so aussehen:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" encoding="iso-8859-1" />
<xsl:template match="gpx">
<osm version='0.6' generator='JOSM'><xsl:text>
</xsl:text>
<xsl:apply-templates select="wpt"/>
</osm>
</xsl:template>
<xsl:template match="wpt">
<node id='-1' action='modify' visible='true'>
<xsl:attribute name="lat"><xsl:value-of select="@lat" /></xsl:attribute>
<xsl:attribute name="lon"><xsl:value-of select="@lon" /></xsl:attribute>
<xsl:text>
</xsl:text>
<xsl:if test="sym='picnic area'">
<tag k='amenity' v='bench' /><xsl:text>
</xsl:text>
</xsl:if>
<xsl:if test="sym='shopping center'">
<tag k='amenity' v='waste_basket' /><xsl:text>
</xsl:text>
</xsl:if>
</node><xsl:text>
</xsl:text>
</xsl:template>
</xsl:stylesheet>
Diese XSLT Datei funktioniert bei mir aber nur, wenn die Zeile
<gpx version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/0" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
in
<gpx>
geändert wird. Da weiss ich leider nicht, wieso das so ist. Funktioniert dann aber 