diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2018-02-14 21:43:34 +0200 |
---|---|---|
committer | mturkia <miika.turkia@gmail.com> | 2018-02-15 17:54:05 +0200 |
commit | f8360eedddeb711e2fe476f1b5d94724e7838d51 (patch) | |
tree | bf6e502ec3ce66f42c7c44d2cd5ee176d6c82bbc | |
parent | 0f3057d7d0181222f4d940174b6ea6c6fc92a466 (diff) | |
download | subsurface-f8360eedddeb711e2fe476f1b5d94724e7838d51.tar.gz |
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>
-rw-r--r-- | xslt/udcf.xslt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/xslt/udcf.xslt b/xslt/udcf.xslt index dbc42ab33..9f617bba2 100644 --- a/xslt/udcf.xslt +++ b/xslt/udcf.xslt @@ -88,10 +88,20 @@ <xsl:value-of select="concat(TANK/TANKVOLUME|tank/tankvolume, ' l')"/> </xsl:attribute> <xsl:attribute name="start"> - <xsl:value-of select="TANK/PSTART|tank/pstart"/> + <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:value-of select="TANK/PEND|tank/pend"/> + <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"/> |