mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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:choose>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<SAMPLEINTERVAL>
|
<!-- Test if dive computer requires special handling -->
|
||||||
|
<xsl:variable name="special">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="divecomputer/@model = 'Suunto EON Steel'">
|
<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:text>10</xsl:text>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
|
|
Loading…
Add table
Reference in a new issue