plcopen/variables_infos.xslt
changeset 3868 e9807c28a788
parent 3802 8616ffd7c29d
equal deleted inserted replaced
3867:a070a9681961 3868:e9807c28a788
   115     <xsl:value-of select="ns:AddVarToTree($name)"/>
   115     <xsl:value-of select="ns:AddVarToTree($name)"/>
   116   </xsl:template>
   116   </xsl:template>
   117   <xsl:template mode="var_type" match="ppx:dataType">
   117   <xsl:template mode="var_type" match="ppx:dataType">
   118     <xsl:apply-templates mode="var_type" select="ppx:baseType"/>
   118     <xsl:apply-templates mode="var_type" select="ppx:baseType"/>
   119   </xsl:template>
   119   </xsl:template>
       
   120   <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/*">
       
   121     <xsl:variable name="name">
       
   122       <xsl:value-of select="local-name()"/>
       
   123     </xsl:variable>
       
   124     <xsl:value-of select="ns:SetType($name)"/>
       
   125   </xsl:template>
   120   <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:struct">
   126   <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:struct">
   121     <xsl:apply-templates mode="var_type" select="ppx:variable"/>
   127     <xsl:apply-templates mode="var_type" select="ppx:variable"/>
   122   </xsl:template>
   128   </xsl:template>
   123   <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:derived">
   129   <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:derived">
   124     <xsl:variable name="type_name">
   130     <xsl:variable name="type_name">
   150     <xsl:value-of select="ns:SetType($name)"/>
   156     <xsl:value-of select="ns:SetType($name)"/>
   151   </xsl:template>
   157   </xsl:template>
   152   <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:wstring">
   158   <xsl:template mode="var_type" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:wstring">
   153     <xsl:variable name="name">
   159     <xsl:variable name="name">
   154       <xsl:text>WSTRING</xsl:text>
   160       <xsl:text>WSTRING</xsl:text>
   155     </xsl:variable>
       
   156     <xsl:value-of select="ns:SetType($name)"/>
       
   157   </xsl:template>
       
   158   <xsl:template mode="var_type" priority="-1.0" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/*">
       
   159     <xsl:variable name="name">
       
   160       <xsl:value-of select="local-name()"/>
       
   161     </xsl:variable>
   161     </xsl:variable>
   162     <xsl:value-of select="ns:SetType($name)"/>
   162     <xsl:value-of select="ns:SetType($name)"/>
   163   </xsl:template>
   163   </xsl:template>
   164   <xsl:template mode="var_edit" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:derived">
   164   <xsl:template mode="var_edit" match="*[self::ppx:type or self::ppx:baseType or self::ppx:returnType]/ppx:derived">
   165     <xsl:variable name="type_name">
   165     <xsl:variable name="type_name">