Shearwater import: new format for DC info

Include the DC info into settings and refer to that in each dive.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2018-05-27 08:26:14 +03:00 committed by Lubomir I. Ivanov
parent 308e079ad6
commit 4e2a7b4e2f

View file

@ -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>