summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>