summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-01-22 11:33:12 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-22 21:49:08 +1200
commitf8f5e73dae5e597af3d90ddb04390f43a8458059 (patch)
tree7166f3233b28b30851ca1518699b5f7265148928 /xslt
parentf8b9d61b92abcf3ce466e0dd345041dbc6c6f784 (diff)
downloadsubsurface-f8f5e73dae5e597af3d90ddb04390f43a8458059.tar.gz
Improve testing whether we have temp and depth info
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/xml2manualcsv.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt
index 452da66d7..d766c78ec 100644
--- a/xslt/xml2manualcsv.xslt
+++ b/xslt/xml2manualcsv.xslt
@@ -32,7 +32,7 @@
<xsl:value-of select="@duration"/>
<xsl:text>&quot;</xsl:text>
<xsl:choose>
- <xsl:when test="divecomputer[1]/depth != ''">
+ <xsl:when test="divecomputer[1]/depth/@mean|divecomputer[1]/depth/@max != ''">
<xsl:apply-templates select="divecomputer[1]/depth"/>
</xsl:when>
<xsl:otherwise>
@@ -46,7 +46,7 @@
<xsl:when test="divetemperature/@air|divetemperature/@water != ''">
<xsl:apply-templates select="divetemperature"/>
</xsl:when>
- <xsl:when test="divecomputer[1]/temperature != ''">
+ <xsl:when test="divecomputer[1]/temperature/@air|divecomputer[1]/temperature/@water != ''">
<xsl:apply-templates select="divecomputer[1]/temperature"/>
</xsl:when>
<xsl:otherwise>