plcopen/variables_infos.xslt
changeset 3868 e9807c28a788
parent 3802 8616ffd7c29d
--- a/plcopen/variables_infos.xslt	Mon Oct 16 23:35:47 2023 +0200
+++ b/plcopen/variables_infos.xslt	Mon Oct 16 23:50:58 2023 +0200
@@ -117,6 +117,12 @@
   <xsl:template mode="var_type" match="ppx:dataType">
     <xsl:apply-templates mode="var_type" select="ppx:baseType"/>
   </xsl:template>
+  <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/*">
+    <xsl:variable name="name">
+      <xsl:value-of select="local-name()"/>
+    </xsl:variable>
+    <xsl:value-of select="ns:SetType($name)"/>
+  </xsl:template>
   <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:struct">
     <xsl:apply-templates mode="var_type" select="ppx:variable"/>
   </xsl:template>
@@ -155,12 +161,6 @@
     </xsl:variable>
     <xsl:value-of select="ns:SetType($name)"/>
   </xsl:template>
-  <xsl:template mode="var_type" priority="-1.0" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/*">
-    <xsl:variable name="name">
-      <xsl:value-of select="local-name()"/>
-    </xsl:variable>
-    <xsl:value-of select="ns:SetType($name)"/>
-  </xsl:template>
   <xsl:template mode="var_edit" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:derived">
     <xsl:variable name="type_name">
       <xsl:value-of select="@name"/>