summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-12-31 22:09:39 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-31 12:13:11 -0800
commit16c46ba2f8972b36f265914cfc3e083c5edc0f84 (patch)
tree7b03c9806e17220f524716d9d4f946b4bc1c9bfb /xslt
parent77a7595cbd649b4f7623d3bd7db3eb14ed68e9db (diff)
downloadsubsurface-16c46ba2f8972b36f265914cfc3e083c5edc0f84.tar.gz
Export only profile from first divecomputer
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/xml2csv.xslt2
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/xml2csv.xslt b/xslt/xml2csv.xslt
index 86739a627..c452dc2ea 100644
--- a/xslt/xml2csv.xslt
+++ b/xslt/xml2csv.xslt
@@ -23,7 +23,7 @@
<xsl:variable name="time">
<xsl:value-of select="@time"/>
</xsl:variable>
- <xsl:for-each select="divecomputer/sample|sample">
+ <xsl:for-each select="divecomputer[1]/sample|sample">
<xsl:value-of select="concat('&quot;', $number, '&quot;')"/>
<xsl:value-of select="$fs"/>
<xsl:value-of select="concat('&quot;', $date, '&quot;')"/>