From 1cd4f3dbb2ef04a1c55b3349a2b100dd86a29732 Mon Sep 17 00:00:00 2001 From: Miika Turkia <miika.turkia@gmail.com> Date: Sat, 18 Feb 2017 11:48:22 +0200 Subject: [PATCH] Add geolocation to divelogs.de export Signed-off-by: Miika Turkia <miika.turkia@gmail.com> --- xslt/divelogs-export.xslt | 8 ++++++++ 1 file changed, 8 insertions(+) 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>