mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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:
parent
0fc57cdac3
commit
c48f6b4138
1 changed files with 10 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue