summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-04-26 10:55:40 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-26 17:17:02 -0700
commit2b559225d6ea480e1a5023900b8498b37fadf861 (patch)
tree14dccdb022b5b86b471bf69ab61f456385c5f4fc /xslt
parent85a3f10508d9fad3e78e35c6d20caa33e196ae69 (diff)
downloadsubsurface-2b559225d6ea480e1a5023900b8498b37fadf861.tar.gz
Quote header line properly on CSV export
Let's make the export consistent by quoting the header line the same way the sample rows are quoted. 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 f647537df..56461bc58 100644
--- a/xslt/xml2csv.xslt
+++ b/xslt/xml2csv.xslt
@@ -6,7 +6,7 @@
<xsl:variable name="fs">,</xsl:variable>
<xsl:template match="/divelog/dives">
- <xsl:value-of select='concat("dive number", $fs, "dive date", $fs, "dive time", $fs, "time", $fs, "depth", $fs, "temperature", $fs, "pressure")'/>
+ <xsl:value-of select="concat('&quot;dive number&quot;', $fs, '&quot;dive date&quot;', $fs, '&quot;dive time&quot;', $fs, '&quot;time&quot;', $fs, '&quot;depth&quot;', $fs, '&quot;temperature&quot;', $fs, '&quot;pressure&quot;')"/>
<xsl:text>
</xsl:text>
<xsl:apply-templates select="dive|trip/dive"/>