diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-04-22 07:02:47 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-04-22 09:07:00 -0700 |
commit | cfa36448a110e81c42a332987c413a2ddf847ad7 (patch) | |
tree | fd9096dbf57c46ee70c7b55ecd7323a60228d5d3 /xslt/commonTemplates.xsl | |
parent | a727f55c677699019f69d4115f1b5c6f7d493f80 (diff) | |
download | subsurface-cfa36448a110e81c42a332987c413a2ddf847ad7.tar.gz |
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>
Diffstat (limited to 'xslt/commonTemplates.xsl')
-rw-r--r-- | xslt/commonTemplates.xsl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xslt/commonTemplates.xsl b/xslt/commonTemplates.xsl index 87af4d686..955cf8250 100644 --- a/xslt/commonTemplates.xsl +++ b/xslt/commonTemplates.xsl @@ -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"> |