mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
308e079ad6
commit
4e2a7b4e2f
1 changed files with 12 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue