summaryrefslogtreecommitdiffstats
path: root/xslt/shearwater.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-12-06 21:38:28 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-07 09:45:46 -0600
commitd7d5c296ddd80a4e2818920de35c22c63dbe7017 (patch)
tree39bdd76883735dd38dd9e1c146c99214f1124add /xslt/shearwater.xslt
parent8cd5d08ba9380a40e3cdcb295b91526bea6c0bd8 (diff)
downloadsubsurface-d7d5c296ddd80a4e2818920de35c22c63dbe7017.tar.gz
Record ppO2 only when on CCR mode
Shearwater describes the current mode with tag currentCircuitSetting, thus we should record the ppO2 only when in CCR mode. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/shearwater.xslt')
-rw-r--r--xslt/shearwater.xslt22
1 files changed, 12 insertions, 10 deletions
diff --git a/xslt/shearwater.xslt b/xslt/shearwater.xslt
index 308303791..2bbe5643d 100644
--- a/xslt/shearwater.xslt
+++ b/xslt/shearwater.xslt
@@ -103,16 +103,18 @@
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
- <xsl:attribute name="po2">
- <xsl:choose>
- <xsl:when test="$units = 'imperial'">
- <xsl:value-of select="concat(averagePPO2 div 14.5037738, ' bar')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="concat(averagePPO2, ' bar')"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
+ <xsl:if test="currentCircuitSetting = 0">
+ <xsl:attribute name="po2">
+ <xsl:choose>
+ <xsl:when test="$units = 'imperial'">
+ <xsl:value-of select="concat(averagePPO2 div 14.5037738, ' bar')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="concat(averagePPO2, ' bar')"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ </xsl:if>
</sample>
</xsl:for-each>
</dive>