Project

Profile

Help

Revision 818ccd8a

Added by Michael Kay about 13 years ago

Fix bug 2212387 - no document node in XQuery output

View differences:

latest9.1/bj/net/sf/saxon/event/ComplexContentOutputter.java
477 477
            characters(item.getStringValueCS(), locationId, 0);
478 478
            previousAtomic = true;
479 479
        } else if (((NodeInfo)item).getNodeKind() == Type.DOCUMENT) {
480
            startDocument(0);
480 481
            SequenceIterator iter = ((NodeInfo)item).iterateAxis(Axis.CHILD);
481 482
            while (true) {
482 483
                Item it = iter.next();
483 484
                if (it == null) break;
484 485
                append(it, locationId, copyNamespaces);
485 486
            }
487
            endDocument();
486 488
            previousAtomic = false;
487 489
        } else {
488 490
            try {

Also available in: Unified diff