Add imperial unit support for temperature

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

View file

@ -63,7 +63,12 @@
<xsl:if test="TEMPERATURE|temperature != ''"> <xsl:if test="TEMPERATURE|temperature != ''">
<temperature> <temperature>
<xsl:attribute name="water"> <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> </xsl:attribute>
</temperature> </temperature>
</xsl:if> </xsl:if>