visitor.setExecutable(getExecutable());
exp = visitor.typeCheck(exp, Type.ITEM_TYPE);
SlotManager map = staticContext.getConfiguration().makeSlotManager();
ExpressionTool.allocateSlots(exp, 0, map);
XPathContextMajor context = new XPathContextMajor(contextNode, staticContext.getExecutable());
context.openStackFrame(map);
SequenceIterator iterator = exp.iterate(context);
ArrayList list = new ArrayList(20);
while (true) {
Item item = iterator.next();
if (item == null) {