diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-04-30 17:48:07 -0600 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-02 17:02:21 -0700 |
commit | c48f6b413809c9acea16bbcbe8657469f4b89635 (patch) | |
tree | 201456f9ee6c14400f27b5d2f3675318d8606903 | |
parent | 0fc57cdac325e356ae689bfee70b48fd92ade562 (diff) | |
download | subsurface-c48f6b413809c9acea16bbcbe8657469f4b89635.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>
-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> |