Bug #2924
closed
Using an array in the content expression of an element constructor
Category:
XQuery conformance
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Description
In both XQuery 3.1 and XSLT 3.0, the spec says that any array in the content of an element constructor should be recursively flattened (NOT atomized). We do not appear to be implementing this rule.
However, we are passing the tests in QT3 ArrayTest which purport to test this.
See https://saxonica.plan.io/boards/3/topics/6534?r=6537
- Status changed from New to Resolved
- Fix Committed on Branch 9.7, 9.8 added
It looks as if the code in SequenceWriter.append() is handling arrays correctly, but the code in ComplexContentOutputter.append() is not.
And in QT3 we're evaluating queries using XQueryEvaluator.iterate(), in pull mode, rather than XQueryEvaluator.run(), in push mode, which takes us down a different path internally.
Copied the array-flattening code from SequenceWriter to ComplexContentOutputter. On 9.7 and 9.8.
(It would be nice to rationalise this one day!)
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in Maintenance Release 9.7.0.10 added
Bug fix applied in the Saxon 9.7.0.10 maintenance release
- Applies to branch deleted (
9.8)
- Fix Committed on Branch trunk added
- Fix Committed on Branch deleted (
9.8)
Please register to edit this issue
Also available in: Atom
PDF