Update to current accumulator syntax
authorMichael Kay <mike@saxonica.com>
Tue, 11 Aug 2015 18:02:14 +0100
changeset 1029 0e3b4ce5f09b
parent 1028 b36832309a6d
child 1030 9cd5261de5a7
Update to current accumulator syntax
tests/insn/copy/_copy-test-set.xml
tests/insn/copy/copy-3002.xsl
--- a/tests/insn/copy/_copy-test-set.xml	Tue Aug 11 18:01:22 2015 +0100
+++ b/tests/insn/copy/_copy-test-set.xml	Tue Aug 11 18:02:14 2015 +0100
@@ -1434,6 +1434,7 @@
    <test-case name="copy-3002">
       <description>xsl:copy-of with copy-accumulators="yes"</description>
       <created by="Michael Kay" on="2015-04-24"/>
+      <modified by="Michael Kay" on="2015-07-31" change="use current xsl:accumulator syntax"/>
       <environment ref="copy-30"/>
       <dependencies>
          <spec value="XSLT30+"/>
--- a/tests/insn/copy/copy-3002.xsl	Tue Aug 11 18:01:22 2015 +0100
+++ b/tests/insn/copy/copy-3002.xsl	Tue Aug 11 18:02:14 2015 +0100
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0">
 
   <!-- xsl:copy-of copy-accumulators="yes"-->
   
@@ -13,8 +13,8 @@
   </out>
 </xsl:template>
 
-<xsl:accumulator name="latest-pick" select="()">
-  <xsl:accumulator-rule match="a2" new-value="@pick"/>
+<xsl:accumulator name="latest-pick" initial-value="()">
+  <xsl:accumulator-rule match="a2" select="@pick"/>
 </xsl:accumulator>  
 
 </xsl:stylesheet>
\ No newline at end of file