Add geolocation to divelogs.de export

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2017-02-18 11:48:22 +02:00 committed by Dirk Hohndel
parent 4375a87598
commit 1cd4f3dbb2

View file

@ -56,6 +56,14 @@
</LOCATION>
</xsl:when>
<xsl:otherwise>
<xsl:if test="/divelog/divesites/site[@uuid = $uuid]/geo/@value != ''">
<LOCATION>
<xsl:for-each select="/divelog/divesites/site[@uuid = $uuid]/geo/@value">
<xsl:if test="position() != 1"> / </xsl:if>
<xsl:value-of select="."/>
</xsl:for-each>
</LOCATION>
</xsl:if>
<SITE>
<xsl:value-of select="$location"/>
</SITE>