XPathCompiler xcomp = runtime.getProcessor().newXPathCompiler();
xcomp.setBaseURI(step.getNode().getBaseURI());
// Make sure any namespace bindings in-scope for the label are available for the expression
for (String prefix : label.getNamespaceBindings().keySet()) {
xcomp.declareNamespace(prefix, label.getNamespaceBindings().get(prefix));
}
xcomp.declareVariable(p_index);
XPathExecutable xexec = xcomp.compile(label.getString());
XPathSelector selector = xexec.load();