diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2018-02-14 21:38:48 +0200 |
---|---|---|
committer | mturkia <miika.turkia@gmail.com> | 2018-02-15 17:54:05 +0200 |
commit | 0f3057d7d0181222f4d940174b6ea6c6fc92a466 (patch) | |
tree | 78f9fc170c18acab449775848f56ad44efbc3b2d | |
parent | 5b422332ac7b414ed693705da172c2e455e15047 (diff) | |
download | subsurface-0f3057d7d0181222f4d940174b6ea6c6fc92a466.tar.gz |
Add imperial unit support for temperature
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
-rw-r--r-- | xslt/udcf.xslt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xslt/udcf.xslt b/xslt/udcf.xslt index ce536677a..dbc42ab33 100644 --- a/xslt/udcf.xslt +++ b/xslt/udcf.xslt @@ -63,7 +63,12 @@ <xsl:if test="TEMPERATURE|temperature != ''"> <temperature> <xsl:attribute name="water"> - <xsl:value-of select="concat(TEMPERATURE|temperature, ' C')"/> + <xsl:call-template name="tempConvert"> + <xsl:with-param name="temp"> + <xsl:value-of select="TEMPERATURE|temperature"/> + </xsl:with-param> + <xsl:with-param name="units" select="$units"/> + </xsl:call-template> </xsl:attribute> </temperature> </xsl:if> |