[PATCH 1/2] Have the dive duration in variable for further use

Miika Turkia miika.turkia at gmail.com
Fri May 1 08:10:59 PDT 2015


Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
 xslt/divelogs-export.xslt | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt
index f912feb..7ae3423 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"/>
-- 
2.1.0



More information about the subsurface mailing list