Add required empty fields on CSV export

We need to have empty field printed for every value on the CSV export.
Hopefully this is enough.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-01-05 14:07:53 +02:00 committed by Dirk Hohndel
parent 9e2e62ec4f
commit c00a5614f3

View file

@ -31,13 +31,31 @@
<xsl:text>&quot;</xsl:text> <xsl:text>&quot;</xsl:text>
<xsl:value-of select="@duration"/> <xsl:value-of select="@duration"/>
<xsl:text>&quot;</xsl:text> <xsl:text>&quot;</xsl:text>
<xsl:choose>
<xsl:when test="divecomputer[1]/depth != ''">
<xsl:apply-templates select="divecomputer[1]/depth"/> <xsl:apply-templates select="divecomputer[1]/depth"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$fs"/>
<xsl:text>&quot;&quot;</xsl:text>
<xsl:value-of select="$fs"/>
<xsl:text>&quot;&quot;</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:choose> <xsl:choose>
<xsl:when test="divetemperature/@air|divetemperature/@water != ''"> <xsl:when test="divetemperature/@air|divetemperature/@water != ''">
<xsl:apply-templates select="divetemperature"/> <xsl:apply-templates select="divetemperature"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:when test="divecomputer[1]/temperature != ''">
<xsl:apply-templates select="divecomputer[1]/temperature"/> <xsl:apply-templates select="divecomputer[1]/temperature"/>
</xsl:when>
<xsl:otherwise>
<!-- empty air temperature -->
<xsl:value-of select="$fs"/>
<xsl:text>&quot;&quot;</xsl:text>
<!-- water temperature -->
<xsl:value-of select="$fs"/>
<xsl:text>&quot;&quot;</xsl:text>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:choose> <xsl:choose>