diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2014-12-26 16:11:35 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-26 08:43:24 -0800 |
commit | 0b040b769de4f566c95abc5dcd2c3216b2f3c399 (patch) | |
tree | 402e409cac099a72cbb37702b71a03fcc77fbdb4 /xslt | |
parent | 4cf0f77d8ac6b9286a71320cd4dd17b82fc2a16a (diff) | |
download | subsurface-0b040b769de4f566c95abc5dcd2c3216b2f3c399.tar.gz |
Store more cylinder information on manual CSV export
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/xml2manualcsv.xslt | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt index bf7fb300f..b2060615d 100644 --- a/xslt/xml2manualcsv.xslt +++ b/xslt/xml2manualcsv.xslt @@ -6,7 +6,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, '"startpressure"', $fs, '"endpressure"', $fs, '"location"', $fs, '"gps"', $fs, '"divemaster"', $fs, '"buddy"', $fs, '"suit"', $fs, '"rating"', $fs, '"visibility"', $fs, '"notes"')"/> + <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"')"/> <xsl:text> </xsl:text> <xsl:apply-templates select="dive|trip/dive"/> @@ -44,12 +44,24 @@ <xsl:otherwise> <xsl:value-of select="$fs"/> <xsl:text>"</xsl:text> + <xsl:value-of select="cylinder[1]/@size"/> + <xsl:text>"</xsl:text> + <xsl:value-of select="$fs"/> + <xsl:text>"</xsl:text> <xsl:value-of select="divecomputer[1]/sample[@pressure]/@pressure"/> <xsl:text>"</xsl:text> <xsl:value-of select="$fs"/> <xsl:text>"</xsl:text> <xsl:value-of select="divecomputer[1]/sample[@pressure][last()]/@pressure"/> <xsl:text>"</xsl:text> + <xsl:value-of select="$fs"/> + <xsl:text>"</xsl:text> + <xsl:value-of select="cylinder[1]/@o2"/> + <xsl:text>"</xsl:text> + <xsl:value-of select="$fs"/> + <xsl:text>"</xsl:text> + <xsl:value-of select="cylinder[1]/@he"/> + <xsl:text>"</xsl:text> </xsl:otherwise> </xsl:choose> <xsl:apply-templates select="location"/> @@ -113,12 +125,24 @@ <xsl:template match="cylinder"> <xsl:value-of select="$fs"/> <xsl:text>"</xsl:text> + <xsl:value-of select="@size"/> + <xsl:text>"</xsl:text> + <xsl:value-of select="$fs"/> + <xsl:text>"</xsl:text> <xsl:value-of select="@start"/> <xsl:text>"</xsl:text> <xsl:value-of select="$fs"/> <xsl:text>"</xsl:text> <xsl:value-of select="@end"/> <xsl:text>"</xsl:text> + <xsl:value-of select="$fs"/> + <xsl:text>"</xsl:text> + <xsl:value-of select="@o2"/> + <xsl:text>"</xsl:text> + <xsl:value-of select="$fs"/> + <xsl:text>"</xsl:text> + <xsl:value-of select="@he"/> + <xsl:text>"</xsl:text> </xsl:template> <xsl:template match="location"> <xsl:value-of select="$fs"/> |