summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt')
-rw-r--r--xslt/SuuntoSDM.xslt8
1 files changed, 5 insertions, 3 deletions
diff --git a/xslt/SuuntoSDM.xslt b/xslt/SuuntoSDM.xslt
index 5c3b17373..98b3b4988 100644
--- a/xslt/SuuntoSDM.xslt
+++ b/xslt/SuuntoSDM.xslt
@@ -189,9 +189,11 @@
<xsl:attribute name="depth">
<xsl:value-of select="concat(translate(DEPTH, ',', '.'), ' m')"/>
</xsl:attribute>
- <xsl:attribute name="temp">
- <xsl:value-of select="TEMPERATURE"/>
- </xsl:attribute>
+ <xsl:if test="TEMPERATURE &gt; 0">
+ <xsl:attribute name="temp">
+ <xsl:value-of select="TEMPERATURE"/>
+ </xsl:attribute>
+ </xsl:if>
<xsl:attribute name="pressure">
<xsl:call-template name="pressure">
<xsl:with-param name="number" select="PRESSURE"/>