[PATCH 2/2] Improve header wording for CSV export

Miika Turkia miika.turkia at gmail.com
Wed Apr 30 09:08:28 PDT 2014


Duration is better term than time for the length of the dive. Also
remove the repetitive word dive from some of the header fields.

Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
 xslt/xml2csv.xslt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xslt/xml2csv.xslt b/xslt/xml2csv.xslt
index 56461bc..3ba6b85 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, '"date"', $fs, '"time"', $fs, '"duration"', $fs, '"depth"', $fs, '"temperature"', $fs, '"pressure"')"/>
     <xsl:text>
 </xsl:text>
     <xsl:apply-templates select="dive|trip/dive"/>
-- 
1.9.1



More information about the subsurface mailing list