aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-09-13 20:47:42 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-13 14:04:31 -0700
commitbaa60e1077a517504516c576988b60595d70dd03 (patch)
tree7684d64f44dfe2cb8c82a4b83bf36b5c312006fa /xslt
parent5afa5ed9f15455c8cbf8806c228e119d41199e78 (diff)
downloadsubsurface-baa60e1077a517504516c576988b60595d70dd03.tar.gz
Support for 2 cylinders on Shearwater XML import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/shearwater.xslt7
1 files changed, 6 insertions, 1 deletions
diff --git a/xslt/shearwater.xslt b/xslt/shearwater.xslt
index b92a06db6..29d564bce 100644
--- a/xslt/shearwater.xslt
+++ b/xslt/shearwater.xslt
@@ -149,10 +149,15 @@
</xsl:attribute>
</xsl:if>
<xsl:if test="tank0pressurePSI != '' and tank0pressurePSI &gt; 0 and tank0pressurePSI &lt; 4092">
- <xsl:attribute name="pressure">
+ <xsl:attribute name="pressure0">
<xsl:value-of select="concat(format-number((tank0pressurePSI * 2 div 14.5037738007), '#.##'), ' bar')"/>
</xsl:attribute>
</xsl:if>
+ <xsl:if test="tank1pressurePSI != '' and tank1pressurePSI &gt; 0 and tank1pressurePSI &lt; 4092">
+ <xsl:attribute name="pressure1">
+ <xsl:value-of select="concat(format-number((tank1pressurePSI * 2 div 14.5037738007), '#.##'), ' bar')"/>
+ </xsl:attribute>
+ </xsl:if>
<xsl:if test="currentNdl != ''">
<xsl:attribute name="ndl">
<xsl:value-of select="concat(currentNdl, ':00 min')"/>