mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
9731f85fc6
commit
a18ada18e4
1 changed files with 0 additions and 27 deletions
|
@ -59,32 +59,6 @@
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</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">
|
<xsl:template match="dive|u:dive|u1:dive">
|
||||||
<dive>
|
<dive>
|
||||||
<!-- Count the amount of temeprature samples during the dive -->
|
<!-- Count the amount of temeprature samples during the dive -->
|
||||||
|
@ -304,7 +278,6 @@
|
||||||
</cylinder>
|
</cylinder>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
|
|
||||||
<xsl:apply-templates select="/uddf/gasdefinitions|/u:uddf/u:gasdefinitions|/u1:uddf/u1:gasdefinitions"/>
|
|
||||||
<depth>
|
<depth>
|
||||||
<xsl:for-each select="greatestdepth|informationafterdive/greatestdepth|u:greatestdepth|u:informationafterdive/u:greatestdepth|u1:greatestdepth|u1:informationafterdive/u1:greatestdepth|max_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">
|
<xsl:attribute name="max">
|
||||||
|
|
Loading…
Reference in a new issue