summaryrefslogtreecommitdiffstats
path: root/xslt/jdivelog2subsurface.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-02-23 06:28:33 +0530
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-22 20:16:48 -0800
commit48de523f15a275bec106333fe64779dc8d3a4bb8 (patch)
tree85592404544a40346c55008ac3ffdb65fdebea58 /xslt/jdivelog2subsurface.xslt
parentce659407a8093834eab29b5c030305f8a0d943b0 (diff)
downloadsubsurface-48de523f15a275bec106333fe64779dc8d3a4bb8.tar.gz
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>
Diffstat (limited to 'xslt/jdivelog2subsurface.xslt')
-rw-r--r--xslt/jdivelog2subsurface.xslt3
1 files changed, 3 insertions, 0 deletions
diff --git a/xslt/jdivelog2subsurface.xslt b/xslt/jdivelog2subsurface.xslt
index d6ca31322..b09c578aa 100644
--- a/xslt/jdivelog2subsurface.xslt
+++ b/xslt/jdivelog2subsurface.xslt
@@ -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>