diff options
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/xml2manualcsv.xslt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt index 8ebe1daa5..d690cec41 100644 --- a/xslt/xml2manualcsv.xslt +++ b/xslt/xml2manualcsv.xslt @@ -22,6 +22,8 @@ $fs, '"duration (min)"', $fs, + '"sac (cuft/min)"', + $fs, '"maxdepth (ft)"', $fs, '"avgdepth (ft)"', @@ -72,6 +74,8 @@ $fs, '"duration (min)"', $fs, + '"sac (l/min)"', + $fs, '"maxdepth (m)"', $fs, '"avgdepth (m)"', @@ -136,6 +140,17 @@ <xsl:text>"</xsl:text> <xsl:value-of select="substring-before(@duration, ' ')"/> <xsl:text>"</xsl:text> + <xsl:value-of select="$fs"/> + <xsl:text>"</xsl:text> + <xsl:choose> + <xsl:when test="$units = 1"> + <xsl:value-of select="format-number(substring-before(@sac, ' ') * 0.035315, '#.##')"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="substring-before(@sac, ' ')"/> + </xsl:otherwise> + </xsl:choose> + <xsl:text>"</xsl:text> <xsl:choose> <xsl:when test="divecomputer[1]/depth/@mean|divecomputer[1]/depth/@max != ''"> <xsl:apply-templates select="divecomputer[1]/depth"/> |