Test case message-0312 fails (with either compiler)
This test case outputs a message, which is a sequence of
(a) a variable reference (whose value is a document node)
(b) a call on
xsl:document to construct another document node
The final message contains the result of (a) but not of (b).
The problem seems to be in
ComplexContentOutputter.append(), which sends the first document node direct to the next
Receiver without unwrapping it. The result is that an end document event finds its way to the DOM builder, which it's expecting to be the last event that happens.
Updated by Michael Kay 9 months ago
- Status changed from New to In Progress
- Priority changed from Low to Normal
Expr["message"], by adding calls on
.endDoc() around the call that pushes the message content. This forces the CCO to have level==1, and a document node emitted at level 1 gets replaced by its children, as required.
Note we also had to change the test case assertion, which was using assert-xml on a non-well-formed XML tree; this is strongly discouraged.
Please register to edit this issue