[PATCH 4/5] Include tags on CSV export
Miika Turkia
miika.turkia at gmail.com
Fri Dec 26 06:11:37 PST 2014
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
xslt/xml2manualcsv.xslt | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt
index 000149a..d780623 100644
--- a/xslt/xml2manualcsv.xslt
+++ b/xslt/xml2manualcsv.xslt
@@ -8,7 +8,7 @@
<xsl:variable name="fs">,</xsl:variable>
<xsl:template match="/divelog/dives">
- <xsl:value-of select="concat('"dive number"', $fs, '"date"', $fs, '"time"', $fs, '"duration"', $fs, '"maxdepth"', $fs, '"avgdepth"', $fs, '"airtemp"', $fs, '"watertemp"', $fs, '"cylinder size"', $fs, '"startpressure"', $fs, '"endpressure"', $fs, '"o2"', $fs, '"he"', $fs, '"location"', $fs, '"gps"', $fs, '"divemaster"', $fs, '"buddy"', $fs, '"suit"', $fs, '"rating"', $fs, '"visibility"', $fs, '"notes"', $fs, '"weight"')"/>
+ <xsl:value-of select="concat('"dive number"', $fs, '"date"', $fs, '"time"', $fs, '"duration"', $fs, '"maxdepth"', $fs, '"avgdepth"', $fs, '"airtemp"', $fs, '"watertemp"', $fs, '"cylinder size"', $fs, '"startpressure"', $fs, '"endpressure"', $fs, '"o2"', $fs, '"he"', $fs, '"location"', $fs, '"gps"', $fs, '"divemaster"', $fs, '"buddy"', $fs, '"suit"', $fs, '"rating"', $fs, '"visibility"', $fs, '"notes"', $fs, '"weight"', $fs, '"tags"')"/>
<xsl:text>
</xsl:text>
<xsl:apply-templates select="dive|trip/dive"/>
@@ -116,6 +116,11 @@
</xsl:if>
<xsl:text>"</xsl:text>
+ <xsl:value-of select="$fs"/>
+ <xsl:text>"</xsl:text>
+ <xsl:value-of select="@tags"/>
+ <xsl:text>"</xsl:text>
+
<xsl:text>
</xsl:text>
</xsl:template>
--
1.9.1
More information about the subsurface
mailing list