summaryrefslogtreecommitdiffstats
path: root/xslt/uddf.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-12-28 09:05:31 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-28 07:40:17 -0800
commitabcc4d55bda509573016ceeda939a05bebc2e6de (patch)
treeddf2d8e94c104a00d34f81d84ce0d03874223c59 /xslt/uddf.xslt
parentba72f43e7fd4ce7c9f210cad9a6fcabdf45ccf88 (diff)
downloadsubsurface-abcc4d55bda509573016ceeda939a05bebc2e6de.tar.gz
Including alarms and bookmarks on UDDF import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/uddf.xslt')
-rw-r--r--xslt/uddf.xslt32
1 files changed, 32 insertions, 0 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index efc18c14d..0d85ba4eb 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -340,6 +340,38 @@
</event>
</xsl:for-each>
+ <xsl:for-each select="samples/waypoint/alarm|u:samples/u:waypoint/u:alarm|u1:samples/u1:waypoint/u1:alarm">
+ <event>
+ <xsl:attribute name="time">
+ <xsl:call-template name="timeConvert">
+ <xsl:with-param name="timeSec">
+ <xsl:value-of select="preceding-sibling::divetime|preceding-sibling::u:divetime|preceding-sibling::u1:divetime"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:attribute>
+
+ <xsl:attribute name="name">
+ <xsl:value-of select="."/>
+ </xsl:attribute>
+ </event>
+ </xsl:for-each>
+
+ <xsl:for-each select="samples/waypoint/heading|u:samples/u:waypoint/u:heading|u1:samples/u1:waypoint/u1:heading">
+ <event name="heading">
+ <xsl:attribute name="time">
+ <xsl:call-template name="timeConvert">
+ <xsl:with-param name="timeSec">
+ <xsl:value-of select="preceding-sibling::divetime|preceding-sibling::u:divetime|preceding-sibling::u1:divetime"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:attribute>
+
+ <xsl:attribute name="value">
+ <xsl:value-of select="."/>
+ </xsl:attribute>
+ </event>
+ </xsl:for-each>
+
<xsl:for-each select="samples/waypoint|u:samples/u:waypoint|u1:samples/u1:waypoint|samples/d">
<sample>
<xsl:attribute name="time">