diff options
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/xml2manualcsv.xslt | 98 |
1 files changed, 96 insertions, 2 deletions
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt index 4059af226..8ebe1daa5 100644 --- a/xslt/xml2manualcsv.xslt +++ b/xslt/xml2manualcsv.xslt @@ -13,10 +13,104 @@ <xsl:template match="/divelog/dives"> <xsl:choose> <xsl:when test="$units = 1"> - <xsl:value-of select="concat('"dive number"', $fs, '"date"', $fs, '"time"', $fs, '"duration (min)"', $fs, '"maxdepth (ft)"', $fs, '"avgdepth (ft)"', $fs, '"mode"', $fs, '"airtemp (F)"', $fs, '"watertemp (F)"', $fs, '"cylinder size (cuft)"', $fs, '"startpressure (psi)"', $fs, '"endpressure (psi)"', $fs, '"o2 (%)"', $fs, '"he (%)"', $fs, '"location"', $fs, '"gps"', $fs, '"divemaster"', $fs, '"buddy"', $fs, '"suit"', $fs, '"rating"', $fs, '"visibility"', $fs, '"notes"', $fs, '"weight (lbs)"', $fs, '"tags"')"/> + <xsl:value-of select="concat( + '"dive number"', + $fs, + '"date"', + $fs, + '"time"', + $fs, + '"duration (min)"', + $fs, + '"maxdepth (ft)"', + $fs, + '"avgdepth (ft)"', + $fs, + '"mode"', + $fs, + '"airtemp (F)"', + $fs, + '"watertemp (F)"', + $fs, + '"cylinder size (cuft)"', + $fs, + '"startpressure (psi)"', + $fs, + '"endpressure (psi)"', + $fs, + '"o2 (%)"', + $fs, + '"he (%)"', + $fs, + '"location"', + $fs, + '"gps"', + $fs, + '"divemaster"', + $fs, + '"buddy"', + $fs, + '"suit"', + $fs, + '"rating"', + $fs, + '"visibility"', + $fs, + '"notes"', + $fs, + '"weight (lbs)"', + $fs, + '"tags"')"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="concat('"dive number"', $fs, '"date"', $fs, '"time"', $fs, '"duration (min)"', $fs, '"maxdepth (m)"', $fs, '"avgdepth (m)"', $fs, '"mode"', $fs, '"airtemp (C)"', $fs, '"watertemp (C)"', $fs, '"cylinder size (l)"', $fs, '"startpressure (bar)"', $fs, '"endpressure (bar)"', $fs, '"o2 (%)"', $fs, '"he (%)"', $fs, '"location"', $fs, '"gps"', $fs, '"divemaster"', $fs, '"buddy"', $fs, '"suit"', $fs, '"rating"', $fs, '"visibility"', $fs, '"notes"', $fs, '"weight (kg)"', $fs, '"tags"')"/> + <xsl:value-of select=" + concat('"dive number"', + $fs, + '"date"', + $fs, + '"time"', + $fs, + '"duration (min)"', + $fs, + '"maxdepth (m)"', + $fs, + '"avgdepth (m)"', + $fs, + '"mode"', + $fs, + '"airtemp (C)"', + $fs, + '"watertemp (C)"', + $fs, + '"cylinder size (l)"', + $fs, + '"startpressure (bar)"', + $fs, + '"endpressure (bar)"', + $fs, + '"o2 (%)"', + $fs, + '"he (%)"', + $fs, + '"location"', + $fs, + '"gps"', + $fs, + '"divemaster"', + $fs, + '"buddy"', + $fs, + '"suit"', + $fs, + '"rating"', + $fs, + '"visibility"', + $fs, + '"notes"', + $fs, + '"weight (kg)"', + $fs, + '"tags"')"/> </xsl:otherwise> </xsl:choose> <xsl:text> |