diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2017-02-18 11:48:22 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-18 10:48:33 -0800 |
commit | 1cd4f3dbb2ef04a1c55b3349a2b100dd86a29732 (patch) | |
tree | 1fbd69bad2ca90831bd677de56d41dfb988b967c /xslt/divelogs-export.xslt | |
parent | 4375a875984a2c3bb640d168eb24de52954a13b1 (diff) | |
download | subsurface-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.xslt | 8 |
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> |