plcopen/instances_path.xslt
changeset 2626 39d78c530cbb
parent 1949 c266fbaae0f6
child 3801 6839dbb9a1df
equal deleted inserted replaced
2625:e5ce6c4a8672 2626:39d78c530cbb
    60         <xsl:value-of select="$instance_path"/>
    60         <xsl:value-of select="$instance_path"/>
    61       </xsl:with-param>
    61       </xsl:with-param>
    62     </xsl:apply-templates>
    62     </xsl:apply-templates>
    63   </xsl:template>
    63   </xsl:template>
    64   <xsl:template match="ppx:dataType">
    64   <xsl:template match="ppx:dataType">
    65     <xsl:param name="instance_path"/>
    65     <xsl:param name="instance_path" select="concat('#',@name)"/>
    66     <xsl:apply-templates select="ppx:baseType/*[self::ppx:derived or self::ppx:struct or self::ppx:array]">
    66     <xsl:apply-templates select="ppx:baseType/*[self::ppx:derived or self::ppx:struct or self::ppx:array]">
    67       <xsl:with-param name="parent_path">
    67       <xsl:with-param name="variable_path">
    68         <xsl:value-of select="$instance_path"/>
    68         <xsl:value-of select="$instance_path"/>
    69       </xsl:with-param>
    69       </xsl:with-param>
    70     </xsl:apply-templates>
    70     </xsl:apply-templates>
    71   </xsl:template>
    71   </xsl:template>
    72   <xsl:template match="ppx:variable">
    72   <xsl:template match="ppx:variable">
   106       <xsl:variable name="element_path">
   106       <xsl:variable name="element_path">
   107         <xsl:value-of select="$variable_path"/>
   107         <xsl:value-of select="$variable_path"/>
   108         <xsl:text>.</xsl:text>
   108         <xsl:text>.</xsl:text>
   109         <xsl:value-of select="@name"/>
   109         <xsl:value-of select="@name"/>
   110       </xsl:variable>
   110       </xsl:variable>
       
   111       <xsl:apply-templates select="ppx:type/*[self::ppx:derived or self::ppx:struct or self::ppx:array]">
       
   112         <xsl:with-param name="variable_path">
       
   113           <xsl:value-of select="$element_path"/>
       
   114         </xsl:with-param>
       
   115       </xsl:apply-templates>
   111     </xsl:for-each>
   116     </xsl:for-each>
   112     <xsl:apply-templates select="ppx:type/*[self::ppx:derived or self::ppx:struct or self::ppx:array]">
       
   113       <xsl:with-param name="variable_path">
       
   114         <xsl:value-of select="$element_path"/>
       
   115       </xsl:with-param>
       
   116     </xsl:apply-templates>
       
   117   </xsl:template>
   117   </xsl:template>
   118   <xsl:template match="ppx:array">
   118   <xsl:template match="ppx:array">
   119     <xsl:param name="variable_path"/>
   119     <xsl:param name="variable_path"/>
   120     <xsl:apply-templates select="ppx:baseType/*[self::ppx:derived or self::ppx:struct or self::ppx:array]">
   120     <xsl:apply-templates select="ppx:baseType/*[self::ppx:derived or self::ppx:struct or self::ppx:array]">
   121       <xsl:with-param name="variable_path">
   121       <xsl:with-param name="variable_path">