Project

Profile

Help

Bug #2924

closed

Using an array in the content expression of an element constructor

Added by Michael Kay about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XQuery conformance
Sprint/Milestone:
-
Start date:
2016-09-05
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Platforms:

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

Actions #1

Updated by Michael Kay about 8 years ago

  • 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!)

Actions #2

Updated by O'Neil Delpratt about 8 years ago

  • 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

Actions #3

Updated by O'Neil Delpratt over 7 years ago

  • 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