Ambiguous accumulator rules - should choose the last
Reported by David Maus on xsl-list, test case accumulator-081 added.
Saxon seems to be choosing the first accumulator rule when it should choose the second.
Updated by Michael Kay almost 2 years ago
- Status changed from New to In Progress
It should be distinguishing the two rules by sequence number, but both have sequence number 0 (and other ranking attributes equal) so it's essentially choosing at random - perhaps we've got another test somewhere where it randomly gets it right.
The code in
Mode.addRule() at line 208; setting position (the penultimate argument) to zero rather than to a value that increments for each rule.
Please register to edit this issue