Signed-off-by: Miika Turkia <[email protected]>
---
 xslt/divelogs-export.xslt | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt
index 904c893..f231060 100644
--- a/xslt/divelogs-export.xslt
+++ b/xslt/divelogs-export.xslt
@@ -205,9 +205,18 @@
       </xsl:choose>
     </xsl:variable>
 
-    <SAMPLEINTERVAL>
+    <!-- Test if dive computer requires special handling -->
+    <xsl:variable name="special">
       <xsl:choose>
         <xsl:when test="divecomputer/@model = 'Suunto EON Steel'">
+          <xsl:text>1</xsl:text>
+        </xsl:when>
+      </xsl:choose>
+    </xsl:variable>
+
+    <SAMPLEINTERVAL>
+      <xsl:choose>
+        <xsl:when test="$special = 1">
           <xsl:text>10</xsl:text>
         </xsl:when>
         <xsl:otherwise>
-- 
2.1.0

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to