diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-04-30 17:48:07 -0600 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-30 16:55:01 -0700 |
commit | 3f25f841271e5e563df92f81d26fc2d29d31f4da (patch) | |
tree | 09719d7274370705306d57ab841d67cae143e585 /xslt | |
parent | 5ab0cac1ca53ec61df8724c99f5b7f1bbae535f8 (diff) | |
download | subsurface-3f25f841271e5e563df92f81d26fc2d29d31f4da.tar.gz |
Use variable to track special handling of DCs
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.xslt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt index 904c89334..f231060c0 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> |