tests/decl/override/override-misc-007.xsl
changeset 1045 6d51333a8d63
parent 840 e80670ae04c0
child 1186 7f4cefa4b568
equal deleted inserted replaced
1044:585bbb774c33 1045:6d51333a8d63
    13     package-version="1.0.0"/>
    13     package-version="1.0.0"/>
    14     
    14     
    15   <!-- Streamed accumulators in different packages can share the same name -->
    15   <!-- Streamed accumulators in different packages can share the same name -->
    16   
    16   
    17   <xsl:accumulator name="ac" initial-value="0" streamable="yes">
    17   <xsl:accumulator name="ac" initial-value="0" streamable="yes">
    18     <xsl:accumulator-rule match="*" new-value="$value - 1"></xsl:accumulator-rule>
    18     <xsl:accumulator-rule match="*" select="$value - 1"></xsl:accumulator-rule>
    19   </xsl:accumulator>
    19   </xsl:accumulator>
    20   
    20   
    21   <xsl:template name="use-this" visibility="public">
    21   <xsl:template name="use-this" visibility="public">
    22     <xsl:stream href="../accumulator/books.xml" use-accumulators="ac">
    22     <xsl:stream href="../accumulator/books.xml" use-accumulators="ac">
    23       <b><count nodes="{count(//*)}"/><acc value="{accumulator-after('ac')}"/></b>
    23       <b><count nodes="{count(//*)}"/><acc value="{accumulator-after('ac')}"/></b>