return list.iterator();
}
public TailCall processLeavingTail(XPathContext context) throws XPathException {
Controller controller = context.getController();
Emitter emitter = controller.getMessageEmitter();
if (emitter==null) {
emitter = controller.makeMessageEmitter();
}
if (emitter.getWriter()==null) {
emitter.setWriter(new OutputStreamWriter(System.err));
}
TreeReceiver rec = new TreeReceiver(emitter);
XPathContext c2 = context.newMinorContext();
c2.setOrigin(this);
Properties props = new Properties();
props.put(OutputKeys.OMIT_XML_DECLARATION, "yes");
emitter.setOutputProperties(props);
c2.changeOutputDestination(props, rec, false, Validation.PRESERVE, null);
if (select != null) {
SequenceIterator iter = select.iterate(c2);
while (true) {