tests/decl/override/override-misc-005.xsl
changeset 1045 6d51333a8d63
parent 840 e80670ae04c0
equal deleted inserted replaced
1044:585bbb774c33 1045:6d51333a8d63
    14     package-version="1.0.0"/>
    14     package-version="1.0.0"/>
    15     
    15     
    16   <!-- Accumulators in different packages can share the same name -->
    16   <!-- Accumulators in different packages can share the same name -->
    17   
    17   
    18   <xsl:accumulator name="ac" initial-value="0">
    18   <xsl:accumulator name="ac" initial-value="0">
    19     <xsl:accumulator-rule match="*" new-value="$value - 1"></xsl:accumulator-rule>
    19     <xsl:accumulator-rule match="*" select="$value - 1"></xsl:accumulator-rule>
    20   </xsl:accumulator>
    20   </xsl:accumulator>
    21    
    21    
    22     <xsl:template name="main">
    22     <xsl:template name="main">
    23       <xsl:for-each select="$data">
    23       <xsl:for-each select="$data">
    24         <out>
    24         <out>