mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
a727f55c67
commit
cfa36448a1
2 changed files with 144 additions and 0 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue