public void addStep(DeclareStep step) { QName type = step.getDeclaredType(); if (type == null) { // It can't be called so it doesn't really matter... return; } if (declaredSteps.contains(type)) { throw new XProcException(step.getNode(), "You aren't allowed to do this"); } steps.add(step); declaredSteps.put(type, step); }
public void addStep(DeclareStep step) { QName type = step.getDeclaredType(); if (type == null) { // It can't be called so it doesn't really matter... return; } if (declaredSteps.contains(type)) { throw new XProcException(step.getNode(), "You aren't allowed to do this"); } steps.add(step); declaredSteps.put(type, step); }
if (this instanceof When) { port = new Port(runtime,getNode()); port.setStep(parent); port.setPort("#xpath-context");
if (this instanceof When) { port = new Port(runtime,getNode()); port.setStep(parent); port.setPort("#xpath-context");
Step atomicReplacement = new Step(runtime, step.getNode(),step.getDeclaredType(),step.getName()); atomicReplacement.setDeclaration(step); QName ptype = new QName("", "XML-CALABASH-WRAPPER-TYPE"); DeclareStep pipeline = new DeclareStep(runtime, step.getNode(), wrapper); for (Input input : step.inputs()) { Input pInput = new Input(runtime, input.getNode());
Step atomicReplacement = new Step(runtime, step.getNode(),step.getDeclaredType(),step.getName()); atomicReplacement.setDeclaration(step); QName ptype = new QName("", "XML-CALABASH-WRAPPER-TYPE"); DeclareStep pipeline = new DeclareStep(runtime, step.getNode(), wrapper); for (Input input : step.inputs()) { Input pInput = new Input(runtime, input.getNode());