diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2020-05-16 11:58:57 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-18 09:32:58 -0700 |
commit | 3e2a410f93c2b58062a64d3e16f304552a303a7f (patch) | |
tree | 7b6a98a14b3ac02dc475c7f2322266103ac959a0 | |
parent | 878dd1f51812fa2052c99af6dbb9e31f3d7e41b0 (diff) | |
download | subsurface-3e2a410f93c2b58062a64d3e16f304552a303a7f.tar.gz |
format for readability
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
-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> |