summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-12-13 22:00:28 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-13 13:17:28 -0800
commitcb576e49d3a4aaab450ab5e67ba109bc445fe0d3 (patch)
tree2e30abb7f0961c3966ed217dbe0a96e6a3ba0eb4 /xslt
parent872ee7efabdc0ef239af0792fd3ffd0d89430547 (diff)
downloadsubsurface-cb576e49d3a4aaab450ab5e67ba109bc445fe0d3.tar.gz
Include dive duration on uddf import
Adjust to UDDF 3.2 specification 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/uddf.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index 1d130d739..7d9652303 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -90,11 +90,11 @@
<xsl:value-of select="dive_number|u:informationbeforedive/u:divenumber"/>
</xsl:attribute>
</xsl:if>
- <xsl:if test="dive_duration != '' and dive_duration != 0">
+ <xsl:if test="(dive_duration != '' and dive_duration != 0) or (u:informationafterdive/u:diveduration != '' and u:informationafterdive/u:diveduration != 0)">
<xsl:attribute name="duration">
<xsl:call-template name="timeConvert">
<xsl:with-param name="timeSec">
- <xsl:value-of select="dive_duration"/>
+ <xsl:value-of select="dive_duration|u:informationafterdive/u:diveduration"/>
</xsl:with-param>
</xsl:call-template>
</xsl:attribute>