summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xslt/shearwater.xslt10
1 files changed, 10 insertions, 0 deletions
diff --git a/xslt/shearwater.xslt b/xslt/shearwater.xslt
index ae6501a11..308303791 100644
--- a/xslt/shearwater.xslt
+++ b/xslt/shearwater.xslt
@@ -103,6 +103,16 @@
</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>
</sample>
</xsl:for-each>
</dive>