diff options
Diffstat (limited to 'xslt/xml2csv.xslt')
-rw-r--r-- | xslt/xml2csv.xslt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/xslt/xml2csv.xslt b/xslt/xml2csv.xslt index 25f5d8b7c..e4a40cc74 100644 --- a/xslt/xml2csv.xslt +++ b/xslt/xml2csv.xslt @@ -9,10 +9,10 @@ <xsl:template match="/divelog/dives"> <xsl:choose> <xsl:when test="$units = 1"> - <xsl:value-of select="concat('"dive number"', $fs, '"date"', $fs, '"time"', $fs, '"sample time"', $fs, '"sample depth (ft)"', $fs, '"sample temperature (F)"', $fs, '"sample pressure (psi)"')"/> + <xsl:value-of select="concat('"dive number"', $fs, '"date"', $fs, '"time"', $fs, '"sample time (min)"', $fs, '"sample depth (ft)"', $fs, '"sample temperature (F)"', $fs, '"sample pressure (psi)"', $fs, '"sample heartrate"')"/> </xsl:when> <xsl:otherwise> - <xsl:value-of select="concat('"dive number"', $fs, '"date"', $fs, '"time"', $fs, '"sample time"', $fs, '"sample depth (m)"', $fs, '"sample temperature (C)"', $fs, '"sample pressure (bar)"')"/> + <xsl:value-of select="concat('"dive number"', $fs, '"date"', $fs, '"time"', $fs, '"sample time (min)"', $fs, '"sample depth (m)"', $fs, '"sample temperature (C)"', $fs, '"sample pressure (bar)"', $fs, '"sample heartrate"')"/> </xsl:otherwise> </xsl:choose> <xsl:text> @@ -72,6 +72,11 @@ </xsl:choose> </xsl:if> + <xsl:value-of select="$fs"/> + <xsl:if test="@heartbeat != ''"> + <xsl:value-of select="concat('"', @heartbeat, '"')"/> + </xsl:if> + <xsl:text> </xsl:text> </xsl:for-each> |