}
public EventIterator iterateEvents(XPathContext context) throws XPathException {
if (validation != Validation.PRESERVE) {
// Schema validation can't be done in pull mode
return new SingletonEventIterator(evaluateItem(context));
}
return new BracketedDocumentIterator(content.iterateEvents(context));
}