public Item evaluateItem(XPathContext context) throws XPathException {
if (isLazyConstruction() && (
context.getConfiguration().areAllNodesUntyped() ||
(validation == Validation.PRESERVE && getSchemaType() == null))) {
return new UnconstructedDocument(this, context);
} else {
Controller controller = context.getController();
DocumentInfo root;
if (textOnly) {
CharSequence textValue;