aboutsummaryrefslogtreecommitdiffstats
path: root/xslt/uddf.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-12-13 22:00:27 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-13 13:17:17 -0800
commit872ee7efabdc0ef239af0792fd3ffd0d89430547 (patch)
treef6ce8308e102a38dcbebcb33dd4245d53c9efa63 /xslt/uddf.xslt
parentcb0762a3ffeb209e2e5fb4af45acafacfc1dec77 (diff)
downloadsubsurface-872ee7efabdc0ef239af0792fd3ffd0d89430547.tar.gz
Include dive number 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/uddf.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 4f0c90071..1d130d739 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -85,9 +85,9 @@
</xsl:call-template>
</xsl:when>
</xsl:choose>
- <xsl:if test="dive_number != ''">
+ <xsl:if test="dive_number|u:informationbeforedive/u:divenumber != ''">
<xsl:attribute name="number">
- <xsl:value-of select="dive_number"/>
+ <xsl:value-of select="dive_number|u:informationbeforedive/u:divenumber"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="dive_duration != '' and dive_duration != 0">