Fix #3277
This commit is contained in:
parent
a66486f726
commit
182fb80ef2
1 changed files with 3 additions and 4 deletions
|
@ -27,9 +27,7 @@
|
||||||
</name>
|
</name>
|
||||||
</author>
|
</author>
|
||||||
</metadata>
|
</metadata>
|
||||||
<xsl:for-each select="//kml:Folder">
|
<xsl:for-each select="//kml:Placemark">
|
||||||
<xsl:variable name="foldername" select="kml:name"/>
|
|
||||||
<xsl:for-each select="kml:Placemark">
|
|
||||||
<xsl:variable name="lonlat" select="kml:Point/kml:coordinates"/>
|
<xsl:variable name="lonlat" select="kml:Point/kml:coordinates"/>
|
||||||
<xsl:variable name="lon" select="substring-before($lonlat,',')"/>
|
<xsl:variable name="lon" select="substring-before($lonlat,',')"/>
|
||||||
<xsl:variable name="latele" select="substring-after($lonlat,',')"/>
|
<xsl:variable name="latele" select="substring-after($lonlat,',')"/>
|
||||||
|
@ -43,6 +41,8 @@
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
<xsl:variable name="foldername" select="../kml:name"/>
|
||||||
|
|
||||||
<xsl:if test="$lon">
|
<xsl:if test="$lon">
|
||||||
<wpt lon="{$lon}" lat="{$lat}">
|
<wpt lon="{$lon}" lat="{$lat}">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
|
@ -64,7 +64,6 @@
|
||||||
</wpt>
|
</wpt>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</xsl:for-each>
|
|
||||||
<xsl:for-each select="//gx:Track">
|
<xsl:for-each select="//gx:Track">
|
||||||
<trk>
|
<trk>
|
||||||
<trkseg>
|
<trkseg>
|
||||||
|
|
Loading…
Reference in a new issue