@Override public void run() throws SaxonApiException { try { XProcMessageListenerHelper.openStep(runtime, parent, BigDecimal.ONE); } catch (Throwable e) { throw handleException(e); } try { super.run(); } finally { runtime.getMessageListener().closeStep(); } } }
newstep.instantiate(substep); } else if (XProcConstants.p_otherwise.equals(substep.getType())) { XOtherwise newstep = new XOtherwise(runtime, substep, this); newstep.instantiate(substep); } else { throw new XProcException(step.getNode(), "This can't happen, can it? choose contains something that isn't a when or an otherwise?");
newstep.instantiate(substep); } else if (XProcConstants.p_otherwise.equals(substep.getType())) { XOtherwise newstep = new XOtherwise(runtime, substep, this); newstep.instantiate(substep); } else { throw new XProcException(step.getNode(), "This can't happen, can it? choose contains something that isn't a when or an otherwise?");