summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-12-22 23:04:03 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-22 14:23:50 -0800
commitf1b3ecbfa9e02bb5c8402e445ddbf859d238bea8 (patch)
tree1968a8c90fce33c709232087048b624ecbc838db /xslt
parent898a62f88837063e0d079dc995f4dad9e87aaf85 (diff)
downloadsubsurface-f1b3ecbfa9e02bb5c8402e445ddbf859d238bea8.tar.gz
Take depths from first DC on CSV export
We need to limit the DCs from which we grab the depths. Otherwise, we end up with too many depth values. 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.xslt2
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt
index 93894a7b5..03e417857 100644
--- a/xslt/xml2manualcsv.xslt
+++ b/xslt/xml2manualcsv.xslt
@@ -28,7 +28,7 @@
<xsl:text>&quot;</xsl:text>
<xsl:value-of select="@duration"/>
<xsl:text>&quot;</xsl:text>
- <xsl:apply-templates select="divecomputer/depth"/>
+ <xsl:apply-templates select="divecomputer[1]/depth"/>
<xsl:choose>
<xsl:when test="divetemperature/@air|divetemperature/@water != ''">
<xsl:apply-templates select="divetemperature"/>