mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Support gas changes on Shearwater XML import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
10216f5e3e
commit
ae34f62489
1 changed files with 20 additions and 0 deletions
|
@ -107,6 +107,26 @@
|
|||
<extradata key="gfMin" value="{gfMin}"/>
|
||||
<extradata key="gfMax" value="{gfMax}"/>
|
||||
|
||||
<xsl:for-each select="diveLogRecords/diveLogRecord">
|
||||
<xsl:if test="(fractionO2 != preceding-sibling::diveLogRecord[1]/fractionO2) or (fractionHe != preceding-sibling::diveLogRecord[1]/fractionHe)">
|
||||
<event name="gaschange">
|
||||
<xsl:attribute name="time">
|
||||
<xsl:call-template name="sec2time">
|
||||
<xsl:with-param name="timeSec">
|
||||
<xsl:value-of select="currentTime"/>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="o2">
|
||||
<xsl:value-of select="fractionO2"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="he">
|
||||
<xsl:value-of select="fractionHe"/>
|
||||
</xsl:attribute>
|
||||
</event>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
|
||||
<xsl:for-each select="diveLogRecords/diveLogRecord">
|
||||
<sample>
|
||||
<xsl:attribute name="time">
|
||||
|
|
Loading…
Reference in a new issue