if (name.equals(stepName) && "#xpath-context".equals(portName)) {
// FIXME: Check that .get(0) works, and that there's no sequence
Vector<ReadablePipe> xpc = inputs.get("#xpath-context");
if (xpc.size() == 0) {
// If there's no binding for a p:choose, the default is an empty binding...
return new ReadableEmpty();
}
ReadablePipe pipe = xpc.get(0);
return new Pipe(runtime, pipe.documents());
} else {
return super.getBinding(stepName, portName);