summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-04-30 17:48:06 -0600
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-02 17:02:21 -0700
commit0fc57cdac325e356ae689bfee70b48fd92ade562 (patch)
tree3db77a5a04033935a62c182344e59fed0f94848a /xslt
parent02ed0ccabb88118f0e1fb56d1ef57d247fedebdc (diff)
downloadsubsurface-0fc57cdac325e356ae689bfee70b48fd92ade562.tar.gz
Set EON Steel sample interval to 10s on
This sets the Suunto EON Steel sample interval to 10 seconds when exporting to divelogs.de. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/divelogs-export.xslt42
1 files changed, 25 insertions, 17 deletions
diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt
index 5752a4452..904c89334 100644
--- a/xslt/divelogs-export.xslt
+++ b/xslt/divelogs-export.xslt
@@ -206,29 +206,37 @@
</xsl:variable>
<SAMPLEINTERVAL>
- <xsl:variable name="first">
- <xsl:call-template name="time2sec">
- <xsl:with-param name="time">
- <xsl:value-of select="node()/sample[1]/@time"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="second">
- <xsl:call-template name="time2sec">
- <xsl:with-param name="time">
- <xsl:value-of select="node()/sample[2]/@time"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
<xsl:choose>
- <xsl:when test="$manual = 0">
- <xsl:value-of select="$second - $first"/>
+ <xsl:when test="divecomputer/@model = 'Suunto EON Steel'">
+ <xsl:text>10</xsl:text>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="60"/>
+ <xsl:variable name="first">
+ <xsl:call-template name="time2sec">
+ <xsl:with-param name="time">
+ <xsl:value-of select="node()/sample[1]/@time"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:variable name="second">
+ <xsl:call-template name="time2sec">
+ <xsl:with-param name="time">
+ <xsl:value-of select="node()/sample[2]/@time"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$manual = 0">
+ <xsl:value-of select="$second - $first"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="60"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:otherwise>
</xsl:choose>
</SAMPLEINTERVAL>
+
<xsl:for-each select="divecomputer[1]/sample">
<xsl:choose>
<xsl:when test="$manual = 1 and @time != '0:00 min'">