Set<String> inputports = pipeline.getInputs();
Set<String> outputports = pipeline.getOutputs();
int inputCount = 0;
for (String port : inputports) {
XInput input = pipeline.getInput(port);
if (input.getParameters()) {
// nop; it's ok for these to be unbound
} else {
inputCount++;
}
}
boolean detailed = getOption(_detailed, false);
if (!detailed && (inputCount > 1 || outputports.size() > 1)) {
throw new XProcException(step.getNode(), "You must specify detailed='true' to eval pipelines with multiple inputs or outputs");
}
DeclareStep decl = pipeline.getDeclareStep();
String primaryin = null;
Iterator<String> portiter = inputports.iterator();
while (portiter.hasNext()) {
String port = portiter.next();
Input input = decl.getInput(port);
if (!input.getParameterInput() && ((inputports.size() == 1 && !input.getPrimarySet()) || input.getPrimary())) {
primaryin = port;
}
}
Hashtable<String,Vector<XdmNode>> inputs = new Hashtable<String,Vector<XdmNode>> ();