mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:53:23 +00:00
Import DC model from SDE file
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
72f59d54cb
commit
f798859178
1 changed files with 10 additions and 4 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Reference in a new issue