Fixed bug when loading complex type variable initial value
authorLaurent Bessard
Fri, 11 Oct 2013 08:58:32 +0200
changeset 1359 cce13b237b07
parent 1358 fe7770a30527
child 1360 ebfe9c22af2a
Fixed bug when loading complex type variable initial value
plcopen/variables_infos.xslt
plcopen/variables_infos.ysl2
--- a/plcopen/variables_infos.xslt	Fri Oct 11 08:54:50 2013 +0200
+++ b/plcopen/variables_infos.xslt	Fri Oct 11 08:58:32 2013 +0200
@@ -257,7 +257,7 @@
     <xsl:param name="_indent" select="0"/>
     <xsl:param name="start_bracket"/>
     <xsl:param name="end_bracket"/>
-    <xsl:value-of select="@start_bracket"/>
+    <xsl:value-of select="$start_bracket"/>
     <xsl:for-each select="ppx:value">
       <xsl:apply-templates select=".">
         <xsl:with-param name="_indent" select="$_indent + (1) * $autoindent"/>
@@ -268,7 +268,7 @@
         </xsl:when>
       </xsl:choose>
     </xsl:for-each>
-    <xsl:value-of select="@end_bracket"/>
+    <xsl:value-of select="$end_bracket"/>
   </xsl:template>
   <xsl:template match="ppx:arrayValue">
     <xsl:param name="_indent" select="0"/>
--- a/plcopen/variables_infos.ysl2	Fri Oct 11 08:54:50 2013 +0200
+++ b/plcopen/variables_infos.ysl2	Fri Oct 11 08:58:32 2013 +0200
@@ -203,14 +203,14 @@
     function "complex_type_value" {
         param "start_bracket";
         param "end_bracket";
-        > «@start_bracket»
+        > «$start_bracket»
         foreach "ppx:value" {
             apply ".";
             choose {
                 when "position()!=last()" > , 
             }
         }
-        > «@end_bracket»
+        > «$end_bracket»
     }
     
     template "ppx:arrayValue" {