aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-09-06 21:40:14 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-07 07:24:11 -0700
commit5430eec99d0562733001e2603d687fa0d54dd06e (patch)
tree7ac1d546e18b4b65f31edff5ee543c9a0d9990f9 /xslt
parentc87b9645e7a574c0866b5ba2a5b3530e6c5f98c6 (diff)
downloadsubsurface-5430eec99d0562733001e2603d687fa0d54dd06e.tar.gz
New location management for divelogs.de export
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/divelogs-export.xslt9
1 files changed, 6 insertions, 3 deletions
diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt
index 8a0b792bf..7877c148f 100644
--- a/xslt/divelogs-export.xslt
+++ b/xslt/divelogs-export.xslt
@@ -34,8 +34,11 @@
<DIVETIMESEC>
<xsl:value-of select="$duration"/>
</DIVETIMESEC>
+ <xsl:variable name="uuid">
+ <xsl:value-of select="@divesiteid"/>
+ </xsl:variable>
<LOCATION>
- <xsl:value-of select="location"/>
+ <xsl:value-of select="//site[@uuid = $uuid]/@name"/>
</LOCATION>
<WATERVIZIBILITY>
<xsl:value-of select="@visibility"/>
@@ -182,10 +185,10 @@
<xsl:value-of select="notes"/>
</LOGNOTES>
<LAT>
- <xsl:value-of select="substring-before(location/@gps, ' ')"/>
+ <xsl:value-of select="substring-before(//site[@uuid = $uuid]/@gps, ' ')"/>
</LAT>
<LNG>
- <xsl:value-of select="substring-after(location/@gps, ' ')"/>
+ <xsl:value-of select="substring-after(//site[@uuid = $uuid]/@gps, ' ')"/>
</LNG>
<MAXDEPTH>
<xsl:value-of select="substring-before(node()/depth/@max, ' ')"/>