summaryrefslogtreecommitdiffstats
path: root/xslt/divelogs-export.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-05-01 09:10:59 -0600
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-02 11:25:35 -0700
commit4f83bb9236d501653ae6890578ee31a8e5cc5f92 (patch)
tree786b2c386eaf8eb486a1839ca62cac3dbcd28b47 /xslt/divelogs-export.xslt
parente491f4a0db4d36fe659251f7e404b9cfaea7fee0 (diff)
downloadsubsurface-4f83bb9236d501653ae6890578ee31a8e5cc5f92.tar.gz
Have the dive duration in variable for further use
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/divelogs-export.xslt')
-rw-r--r--xslt/divelogs-export.xslt7
1 files changed, 6 insertions, 1 deletions
diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt
index f912febed..7ae342356 100644
--- a/xslt/divelogs-export.xslt
+++ b/xslt/divelogs-export.xslt
@@ -22,12 +22,17 @@
<TIME>
<xsl:value-of select="@time"/>
</TIME>
- <DIVETIMESEC>
+
+ <xsl:variable name="duration">
<xsl:call-template name="time2sec">
<xsl:with-param name="time">
<xsl:value-of select="@duration"/>
</xsl:with-param>
</xsl:call-template>
+ </xsl:variable>
+
+ <DIVETIMESEC>
+ <xsl:value-of select="$duration"/>
</DIVETIMESEC>
<LOCATION>
<xsl:value-of select="location"/>