summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2018-02-08 20:32:30 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-02-08 21:30:00 +0100
commitf798859178d55bf340d6ed573c31fe15a410ca4f (patch)
tree12f6f56b9f1ce68231b4c4e50d6e56fe28ed89e0 /xslt
parent72f59d54cb61e250274b43f2a5831acf3f29d0fd (diff)
downloadsubsurface-f798859178d55bf340d6ed573c31fe15a410ca4f.tar.gz
Import DC model from SDE file
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/SuuntoSDM.xslt14
1 files changed, 10 insertions, 4 deletions
diff --git a/xslt/SuuntoSDM.xslt b/xslt/SuuntoSDM.xslt
index d8d566643..f0bff52a7 100644
--- a/xslt/SuuntoSDM.xslt
+++ b/xslt/SuuntoSDM.xslt
@@ -4,10 +4,16 @@
<xsl:output method="xml" indent="yes" encoding="ASCII"/>
<xsl:template match="/">
- <dives>
- <program name="subsurface-import" version="1"/>
- <xsl:apply-templates select="/SUUNTO/MSG"/>
- </dives>
+ <divelog program="subsurface-import" version="2">
+ <dives>
+ <divecomputer>
+ <xsl:attribute name="model">
+ <xsl:value-of select="concat('Suunto ', /SUUNTO/MSG/DEVICEMODEL)" />
+ </xsl:attribute>
+ </divecomputer>
+ <xsl:apply-templates select="/SUUNTO/MSG"/>
+ </dives>
+ </divelog>
</xsl:template>
<xsl:template match="MSG">