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:
Miika Turkia 2014-12-17 10:43:59 +02:00 committed by Dirk Hohndel
parent ff338f62c2
commit 299a85f668

View file

@ -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 &gt; 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">