aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt')
-rw-r--r--xslt/divelogs-export.xslt12
1 files changed, 7 insertions, 5 deletions
diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt
index 287b28c18..614fafd5c 100644
--- a/xslt/divelogs-export.xslt
+++ b/xslt/divelogs-export.xslt
@@ -214,11 +214,13 @@
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
- <SAMPLE>
- <DEPTH>
- <xsl:value-of select="$curdepth div 1000"/>
- </DEPTH>
- </SAMPLE>
+ <xsl:if test="$curdepth &gt; 0">
+ <SAMPLE>
+ <DEPTH>
+ <xsl:value-of select="$curdepth div 1000"/>
+ </DEPTH>
+ </SAMPLE>
+ </xsl:if>
</xsl:otherwise>
</xsl:choose>