summaryrefslogtreecommitdiffstats
path: root/xslt/divelogs-export.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-02-18 11:48:22 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-18 10:48:33 -0800
commit1cd4f3dbb2ef04a1c55b3349a2b100dd86a29732 (patch)
tree1fbd69bad2ca90831bd677de56d41dfb988b967c /xslt/divelogs-export.xslt
parent4375a875984a2c3bb640d168eb24de52954a13b1 (diff)
downloadsubsurface-1cd4f3dbb2ef04a1c55b3349a2b100dd86a29732.tar.gz
Add geolocation to divelogs.de export
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt/divelogs-export.xslt')
-rw-r--r--xslt/divelogs-export.xslt8
1 files changed, 8 insertions, 0 deletions
diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt
index b23ee4806..bf12950e0 100644
--- a/xslt/divelogs-export.xslt
+++ b/xslt/divelogs-export.xslt
@@ -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>