[PATCH 01/10] Include dive number on uddf import

Miika Turkia miika.turkia at gmail.com
Sat Dec 13 12:00:27 PST 2014


Adjust to UDDF 3.2 specification

Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
 xslt/uddf.xslt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index 4f0c900..1d130d7 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">
-- 
1.9.1



More information about the subsurface mailing list