JDiveLog import - add ndl=0 when on deco

This patch will add ndl='0:00 min' attribute on all the samples that
have stoptime or stopdepth set when importing from JDiveLog. This hack
ensures that dive computer's deco ceiling is shown.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2013-02-23 06:28:33 +05:30 committed by Dirk Hohndel
parent ce659407a8
commit 48de523f15

View file

@ -294,6 +294,9 @@ Comment: <xsl:value-of select="Comment"/>
<xsl:attribute name="stopdepth">
<xsl:value-of select="concat(following-sibling::DECOINFO[1], ' m')"/>
</xsl:attribute>
<xsl:attribute name="ndl">
<xsl:value-of select="'0:00 min'"/>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:if>