//NodeInfo curr;
XPathContextMajor xc = context.newContext();
xc.setOrigin(keydef);
// The use expression (or sequence constructor) may contain local variables.
SlotManager map = keydef.getStackFrameMap();
if (map != null) {
xc.openStackFrame(map);
}
SequenceIterator iter = match.selectNodes(doc, xc);