mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
Support cylinder information from Xdeep and Diving Log
This adds support for importing cylinder information from at least Xdeep and Diving Log v 5.0. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ff338f62c2
commit
299a85f668
1 changed files with 15 additions and 0 deletions
|
@ -278,6 +278,21 @@
|
|||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="/uddf/gasdefinitions != ''">
|
||||
<xsl:for-each select="/uddf/gasdefinitions/mix">
|
||||
<cylinder description="{name}">
|
||||
<xsl:attribute name="o2">
|
||||
<xsl:value-of select="concat(o2 * 100, '%')"/>
|
||||
</xsl:attribute>
|
||||
<xsl:if test="he > 0">
|
||||
<xsl:attribute name="he">
|
||||
<xsl:value-of select="concat(he * 100, '%')"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</cylinder>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:for-each select="tankdata|u:tankdata|u1:tankdata">
|
||||
<cylinder>
|
||||
<xsl:variable name="gas">
|
||||
|
|
Loading…
Add table
Reference in a new issue