Convert imperial pressures to metric

This will convert cylinder start and end pressures from imperial to
metric, when necessary.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2018-02-14 21:43:34 +02:00 committed by mturkia
parent 0f3057d7d0
commit f8360eeddd

View file

@ -88,10 +88,20 @@
<xsl:value-of select="concat(TANK/TANKVOLUME|tank/tankvolume, ' l')"/>
</xsl:attribute>
<xsl:attribute name="start">
<xsl:call-template name="pressureConvert">
<xsl:with-param name="number">
<xsl:value-of select="TANK/PSTART|tank/pstart"/>
</xsl:with-param>
<xsl:with-param name="units" select="$units"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="end">
<xsl:call-template name="pressureConvert">
<xsl:with-param name="number">
<xsl:value-of select="TANK/PEND|tank/pend"/>
</xsl:with-param>
<xsl:with-param name="units" select="$units"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="o2">
<xsl:value-of select="O2|o2"/>