CSV export: export only existing temperatures

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2017-03-13 21:25:43 +02:00 committed by Dirk Hohndel
parent 3a003f4c10
commit 1c03cb259e

View file

@ -230,7 +230,9 @@
<xsl:text>&quot;</xsl:text>
<xsl:choose>
<xsl:when test="$units = 1">
<xsl:if test="substring-before(@air, ' ') &gt; 0">
<xsl:value-of select="concat(format-number((substring-before(@air, ' ') * 1.8) + 32, '0.0'), ' F')"/>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@air"/>
@ -241,7 +243,9 @@
<xsl:text>&quot;</xsl:text>
<xsl:choose>
<xsl:when test="$units = 1">
<xsl:if test="substring-before(@water, ' ') &gt; 0">
<xsl:value-of select="concat(format-number((substring-before(@water, ' ') * 1.8) + 32, '0.0'), ' F')"/>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@water"/>