aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-12-28 09:05:38 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-28 07:43:50 -0800
commita18ada18e4b0be4704b0387303327aaf661e8b57 (patch)
tree06c7ff240f4be1c6fd80cfc170f140d9c3669c4c /xslt
parent9731f85fc603bf5c7b9cc7107d17f0e78b5a745e (diff)
downloadsubsurface-a18ada18e4b0be4704b0387303327aaf661e8b57.tar.gz
Remove unnecessary cylinder generation on UDDF
Nowadays cylinder tags are generated based on actual usage. This includes all the required information on cylinders. Therefore generating incomplete cylinder tags from all listed cylinders is not needed anymore. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/uddf.xslt27
1 files changed, 0 insertions, 27 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index b3fa973d2..7f5d668ea 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -59,32 +59,6 @@
</xsl:if>
</xsl:template>
- <xsl:template match="gasdefinitions|u:gasdefinitions|u1:gasdefinitions|gas_def">
- <xsl:for-each select="mix|u:mix|u1:mix|gas_mix">
- <cylinder>
- <xsl:attribute name="description">
- <xsl:value-of select="name|u:name|u1:name|mixname"/>
- </xsl:attribute>
-
- <xsl:attribute name="o2">
- <xsl:call-template name="gasConvert">
- <xsl:with-param name="mix">
- <xsl:value-of select="o2|u:o2|u1:o2"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:attribute>
-
- <xsl:attribute name="he">
- <xsl:call-template name="gasConvert">
- <xsl:with-param name="mix">
- <xsl:value-of select="he|u:he|u1:he"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:attribute>
- </cylinder>
- </xsl:for-each>
- </xsl:template>
-
<xsl:template match="dive|u:dive|u1:dive">
<dive>
<!-- Count the amount of temeprature samples during the dive -->
@@ -304,7 +278,6 @@
</cylinder>
</xsl:for-each>
- <xsl:apply-templates select="/uddf/gasdefinitions|/u:uddf/u:gasdefinitions|/u1:uddf/u1:gasdefinitions"/>
<depth>
<xsl:for-each select="greatestdepth|informationafterdive/greatestdepth|u:greatestdepth|u:informationafterdive/u:greatestdepth|u1:greatestdepth|u1:informationafterdive/u1:greatestdepth|max_depth">
<xsl:attribute name="max">