summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt')
-rw-r--r--xslt/uddf-export.xslt8
1 files changed, 4 insertions, 4 deletions
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt
index d89a5b071..8037d7d0e 100644
--- a/xslt/uddf-export.xslt
+++ b/xslt/uddf-export.xslt
@@ -360,11 +360,11 @@
<xsl:value-of select="substring-before(@start, ' ') * 100000"/>
</tankpressurebegin>
</xsl:when>
- <xsl:otherwise>
+ <xsl:when test="../divecomputer[1]/sample[@pressure]/@pressure[1]">
<tankpressurebegin>
<xsl:value-of select="substring-before(../divecomputer[1]/sample[@pressure]/@pressure[1], ' ') * 100000"/>
</tankpressurebegin>
- </xsl:otherwise>
+ </xsl:when>
</xsl:choose>
<xsl:choose>
@@ -373,11 +373,11 @@
<xsl:value-of select="substring-before(@end, ' ') * 100000"/>
</tankpressureend>
</xsl:when>
- <xsl:otherwise>
+ <xsl:when test="../divecomputer[1]/sample[@pressure][last()]/@pressure[1]">
<tankpressureend>
<xsl:value-of select="substring-before(../divecomputer[1]/sample[@pressure][last()]/@pressure[1], ' ') * 100000"/>
</tankpressureend>
- </xsl:otherwise>
+ </xsl:when>
</xsl:choose>
</tankdata>