diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2014-04-26 10:55:40 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-04-26 17:17:02 -0700 |
commit | 2b559225d6ea480e1a5023900b8498b37fadf861 (patch) | |
tree | 14dccdb022b5b86b471bf69ab61f456385c5f4fc /xslt | |
parent | 85a3f10508d9fad3e78e35c6d20caa33e196ae69 (diff) | |
download | subsurface-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.xslt | 2 |
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('"dive number"', $fs, '"dive date"', $fs, '"dive time"', $fs, '"time"', $fs, '"depth"', $fs, '"temperature"', $fs, '"pressure"')"/> <xsl:text> </xsl:text> <xsl:apply-templates select="dive|trip/dive"/> |