[PATCH 8/8] Remove unnecessary cylinder generation on UDDF

Miika Turkia miika.turkia at gmail.com
Fri Dec 27 23:05:38 UTC 2013


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 at gmail.com>
---
 xslt/uddf.xslt | 27 ---------------------------
 1 file changed, 27 deletions(-)

diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index b3fa973..7f5d668 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">
-- 
1.8.3.2



More information about the subsurface mailing list