#277 Document node is of wrong kind

v8.2
closed
5
2012-10-08
2004-12-31
Michael Kay
No

If a document node is constructed as part of the
content of an element node, Saxon may fail with the
error message "Document node is of wrong kind". (The
correct behavior here is that the contents of the
document node should be copied to form the children of
the element node).

Source fix: in net.sf.saxon.tinytree.TinyBuilder,
around line 91 in the startDocument method, change

if (started) {
return;
}

to

if (started || currentDepth > 0) {
return;
}

Applies to 8.2 only. The bug was found running XQuery,
but it's possible it could also occur running XSLT.
Test case added: qxmp203.

Michael Kay

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks