summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>