diff options
-rw-r--r-- | xslt/xml2manualcsv.xslt | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt index d690cec41..3892d8c6e 100644 --- a/xslt/xml2manualcsv.xslt +++ b/xslt/xml2manualcsv.xslt @@ -13,6 +13,8 @@ <xsl:template match="/divelog/dives"> <xsl:choose> <xsl:when test="$units = 1"> + + <!-- Print beginning of the header --> <xsl:value-of select="concat( '"dive number"', $fs, @@ -33,7 +35,10 @@ '"airtemp (F)"', $fs, '"watertemp (F)"', - $fs, + $fs)"/> + + <!-- Print cylinder info according to the amount of cylinders in dive --> + <xsl:value-of select="concat( '"cylinder size (cuft)"', $fs, '"startpressure (psi)"', @@ -43,7 +48,10 @@ '"o2 (%)"', $fs, '"he (%)"', - $fs, + $fs)"/> + + <!-- Print rest of the header --> + <xsl:value-of select="concat( '"location"', $fs, '"gps"', @@ -65,8 +73,10 @@ '"tags"')"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select=" - concat('"dive number"', + + <!-- Print beginning of the header --> + <xsl:value-of select="concat( + '"dive number"', $fs, '"date"', $fs, @@ -85,7 +95,10 @@ '"airtemp (C)"', $fs, '"watertemp (C)"', - $fs, + $fs)"/> + + <!-- Print cylinder info according to the amount of cylinders in dive --> + <xsl:value-of select="concat( '"cylinder size (l)"', $fs, '"startpressure (bar)"', @@ -95,7 +108,10 @@ '"o2 (%)"', $fs, '"he (%)"', - $fs, + $fs)"/> + + <!-- Print rest of the header --> + <xsl:value-of select="concat( '"location"', $fs, '"gps"', |