aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xslt/xml2manualcsv.xslt15
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>&quot;</xsl:text>
<xsl:value-of select="substring-before(@duration, ' ')"/>
<xsl:text>&quot;</xsl:text>
+ <xsl:value-of select="$fs"/>
+ <xsl:text>&quot;</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>&quot;</xsl:text>
<xsl:choose>
<xsl:when test="divecomputer[1]/depth/@mean|divecomputer[1]/depth/@max != ''">
<xsl:apply-templates select="divecomputer[1]/depth"/>