Stripped useless node creation in instances_path stylesheet.
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Fri, 16 Feb 2018 03:24:11 +0100
changeset 1938 87136f8697e3
parent 1937 986dbad48ab7
child 1939 db478d17bc3a
Stripped useless node creation in instances_path stylesheet.
plcopen/instances_path.xslt
plcopen/instances_path.ysl2
--- a/plcopen/instances_path.xslt	Fri Feb 16 02:29:10 2018 +0100
+++ b/plcopen/instances_path.xslt	Fri Feb 16 03:24:11 2018 +0100
@@ -8,9 +8,7 @@
   <xsl:variable name="extensions" select="ns:GetExtensions()"/>
   <xsl:variable name="all" select="$project | $stdlib | $extensions"/>
   <xsl:template match="ppx:project">
-    <instances>
-      <xsl:apply-templates select="ppx:instances/ppx:configurations/ppx:configuration"/>
-    </instances>
+    <xsl:apply-templates select="ppx:instances/ppx:configurations/ppx:configuration"/>
   </xsl:template>
   <xsl:template match="ppx:configuration">
     <xsl:apply-templates select="ppx:globalVars/ppx:variable[ppx:type/ppx:derived] | ppx:resource">
--- a/plcopen/instances_path.ysl2	Fri Feb 16 02:29:10 2018 +0100
+++ b/plcopen/instances_path.ysl2	Fri Feb 16 03:24:11 2018 +0100
@@ -18,9 +18,7 @@
     variable "all", "$project | $stdlib | $extensions";
     
     template "ppx:project" {
-        instances {
-            apply "ppx:instances/ppx:configurations/ppx:configuration";
-        }
+        apply "ppx:instances/ppx:configurations/ppx:configuration";
     }
     
     template "ppx:configuration" {