XSLT for importing individual DM4 dives

This XSLT can be used when exporting single dives from DM4 and importing
them to Subsurface.

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-04-22 07:02:47 +03:00 committed by Dirk Hohndel
parent a727f55c67
commit cfa36448a1
2 changed files with 144 additions and 0 deletions

View file

@ -104,6 +104,12 @@
<xsl:value-of select="substring-before($time, ':') * 60 + substring-before(substring-after($time, ':'), ' ')"/>
</xsl:template>
<xsl:template name="sec2time">
<xsl:param name="timeSec"/>
<xsl:value-of select="concat(round($timeSec div 60), ':', format-number($timeSec mod 60, '00'))"/>
</xsl:template>
<!-- Calculate sum of all parameters, and strip any unit following the
value -->
<xsl:template name="sum">