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>
This commit is contained in:
Miika Turkia 2015-04-30 17:48:07 -06:00 committed by Dirk Hohndel
parent 0fc57cdac3
commit c48f6b4138

View file

@ -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>