mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:53:23 +00:00
Samples should be inside divecomputer on Shearwater import
Data read from a divecomputer is moved inside the divecomputer tag Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4dc99a0b56
commit
b03423dd96
1 changed files with 45 additions and 45 deletions
|
@ -67,15 +67,6 @@
|
|||
</xsl:attribute>
|
||||
</surface>
|
||||
|
||||
<divecomputer>
|
||||
<xsl:attribute name="model">
|
||||
<xsl:value-of select="'Shearwater'"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="deviceid">
|
||||
<xsl:value-of select="computerSerial"/>
|
||||
</xsl:attribute>
|
||||
</divecomputer>
|
||||
|
||||
<xsl:for-each select="diveLogRecords/diveLogRecord[generate-id() = generate-id(key('gases', concat(fractionO2, '/', fractionHe))[1])]">
|
||||
<xsl:if test="currentCircuitSetting = 1">
|
||||
<cylinder>
|
||||
|
@ -94,6 +85,14 @@
|
|||
</xsl:if>
|
||||
</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>
|
||||
|
||||
<xsl:for-each select="diveLogRecords/diveLogRecord">
|
||||
<sample>
|
||||
<xsl:attribute name="time">
|
||||
|
@ -137,6 +136,7 @@
|
|||
</xsl:if>
|
||||
</sample>
|
||||
</xsl:for-each>
|
||||
</divecomputer>
|
||||
</dive>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
|
Loading…
Add table
Reference in a new issue