diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2014-12-17 10:43:59 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-17 07:51:43 -0800 |
commit | 299a85f668a8efd26765fc8bcb8bdfa11c2bac83 (patch) | |
tree | 99ef9ea08acde7e1d96d184687ab16b84728e91d | |
parent | ff338f62c27771b8b8903427be656bc955d2e4da (diff) | |
download | subsurface-299a85f668a8efd26765fc8bcb8bdfa11c2bac83.tar.gz |
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>
-rw-r--r-- | xslt/uddf.xslt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt index 0604b2246..26947e598 100644 --- a/xslt/uddf.xslt +++ b/xslt/uddf.xslt @@ -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"> |