}
props = SaxonXQSequence.setDefaultProperties(props);
SequenceIterator iter = iterator;
if (isOnItem()) {
iter = new Insert.InsertIterator(
SingletonIterator.makeIterator(iter.current()),
iter, 0);
}
try {
QueryResult.serializeSequence(iter, getConfiguration(), os, props);
} catch (XPathException e) {