summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt')
-rw-r--r--xslt/shearwater.xslt15
1 files changed, 12 insertions, 3 deletions
diff --git a/xslt/shearwater.xslt b/xslt/shearwater.xslt
index 4a3884b40..bcd7b58bd 100644
--- a/xslt/shearwater.xslt
+++ b/xslt/shearwater.xslt
@@ -7,6 +7,18 @@
<xsl:template match="/">
<divelog program='subsurface-import' version='2'>
+ <settings>
+ <xsl:for-each select="/dive/diveLog">
+ <divecomputerid deviceid="{computerSerial}">
+ <xsl:attribute name="model">
+ <xsl:value-of select="'Shearwater'" />
+ </xsl:attribute>
+ <xsl:attribute name="serial">
+ <xsl:value-of select="computerSerial" />
+ </xsl:attribute>
+ </divecomputerid>
+ </xsl:for-each>
+ </settings>
<dives>
<xsl:apply-templates select="/dive/diveLog"/>
</dives>
@@ -86,9 +98,6 @@
</xsl:for-each>
<divecomputer>
- <xsl:attribute name="model">
- <xsl:value-of select="'Shearwater'"/>
- </xsl:attribute>
<xsl:attribute name="deviceid">
<xsl:value-of select="computerSerial"/>
</xsl:attribute>