This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The first example of accumulators in 18.6 acknowledges that it doesn't work, saying "This example assumes that in streaming mode, string(.) is permitted for a leaf node (requiring some lookahead). This is not currently the case."
The example has been fixed by binding the value of the element to a variable, making the code streamable.