xprocData = new XProcData(this);
int ipos = data.getIterationPosition(); int isize = data.getIterationSize(); data.openFrame(this); data.setIterationPosition(ipos); data.setIterationSize(isize); } finally { runtime.finish(this); data.closeFrame();
for (XdmNode doc : runtime.getXProcData().errors()) { treeWriter.addSubtree(doc); reported = true;
public Sequence call(XPathContext xPathContext, Sequence[] sequences) throws XPathException { XProcRuntime runtime = registry.getRuntime(xdef); XProcData data = runtime.getXProcData(); XStep step = data.getStep(); // FIXME: this can't be the best way to do this... // step == null in use-when if (step != null && !(step instanceof XCompoundStep)) { throw XProcException.dynamicError(23); } return new Int64Value(runtime.getXProcData().getIterationPosition()); } }
public Sequence call(XPathContext xPathContext, Sequence[] sequences) throws XPathException { XProcRuntime runtime = registry.getRuntime(xdef); XStep step = runtime.getXProcData().getStep(); // FIXME: this can't be the best way to do this... // step == null in use-when if (step != null && !(step instanceof XCompoundStep)) { throw XProcException.dynamicError(23); } return new Int64Value(runtime.getXProcData().getIterationSize()); } }
data.openFrame(this); runtime.getXProcData().setIterationSize(sequenceLength); runtime.getXProcData().setIterationPosition(sequencePosition); data.closeFrame();
public void run() throws SaxonApiException { QName infoName = XProcConstants.p_pipeline; /* if (!step.isAnonymous()) { infoName = step.getDeclaredType(); } */ logger.trace("Running " + infoName + " " + step.getName()); if (runtime.getAllowGeneralExpressions()) { logger.trace(MessageFormatter.nodeMessage(step.getNode(), "Running with the 'general-values' extension enabled.")); } XProcData data = runtime.getXProcData(); data.openFrame(this); runtime.start(this); try { doRun(); } catch (XProcException ex) { throw ex; } catch (SaxonApiException ex) { runtime.error(ex); throw ex; } finally { runtime.finish(this); data.closeFrame(); } }
public Sequence call(XPathContext xPathContext, Sequence[] sequences) throws XPathException { XProcRuntime runtime = registry.getRuntime(xdef); XStep step = runtime.getXProcData().getStep(); // FIXME: this can't be the best way to do this... // step == null in use-when if (step != null && !(step instanceof XCompoundStep)) { throw XProcException.dynamicError(23); } // In 0.9.20, I removed the trailing slash from cwd(). // The community didn't like that, so I put it back. String cwd = runtime.getStaticBaseURI().toASCIIString(); return new AnyURIValue(cwd); } }
data.openFrame(this); runtime.getXProcData().setIterationSize(sequenceLength);
runtime.getXProcData().setIterationPosition(sequencePosition);
return runtime.getXProcData().catchError(node);
if (data.getDepth() == 0 && input.getBinding().size() > 0) { throw XProcException.staticError(35, input.getNode(), "You must not specify bindings in this context.");
data.openFrame(this); runtime.getXProcData().setIterationSize(sequenceLength); runtime.getXProcData().setIterationPosition(sequencePosition); data.closeFrame();
public void run() throws SaxonApiException { QName infoName = XProcConstants.p_pipeline; /* if (!step.isAnonymous()) { infoName = step.getDeclaredType(); } */ logger.trace("Running " + infoName + " " + step.getName()); if (runtime.getAllowGeneralExpressions()) { logger.trace(MessageFormatter.nodeMessage(step.getNode(), "Running with the 'general-values' extension enabled.")); } XProcData data = runtime.getXProcData(); data.openFrame(this); runtime.start(this); try { doRun(); } catch (XProcException ex) { runtime.error(ex); throw ex; } catch (SaxonApiException ex) { runtime.error(ex); throw ex; } finally { runtime.finish(this); data.closeFrame(); } }
public Sequence call(XPathContext xPathContext, Sequence[] sequences) throws XPathException { XProcRuntime runtime = registry.getRuntime(xdef); XStep step = runtime.getXProcData().getStep(); // FIXME: this can't be the best way to do this... // step == null in use-when if (step != null && !(step instanceof XCompoundStep)) { throw XProcException.dynamicError(23); } // In 0.9.20, I removed the trailing slash from cwd(). // The community didn't like that, so I put it back. String cwd = runtime.getStaticBaseURI().toASCIIString(); return new AnyURIValue(cwd); } }
public Sequence call(XPathContext xPathContext, Sequence[] sequences) throws XPathException { XProcRuntime runtime = registry.getRuntime(xdef); XProcData data = runtime.getXProcData(); XStep step = data.getStep(); // FIXME: this can't be the best way to do this... // step == null in use-when if (step != null && !(step instanceof XCompoundStep)) { throw XProcException.dynamicError(23); } return new Int64Value(runtime.getXProcData().getIterationPosition()); } }
public Sequence call(XPathContext xPathContext, Sequence[] sequences) throws XPathException { XProcRuntime runtime = registry.getRuntime(xdef); XStep step = runtime.getXProcData().getStep(); // FIXME: this can't be the best way to do this... // step == null in use-when if (step != null && !(step instanceof XCompoundStep)) { throw XProcException.dynamicError(23); } return new Int64Value(runtime.getXProcData().getIterationSize()); } }
data.openFrame(this); runtime.getXProcData().setIterationSize(sequenceLength);
runtime.getXProcData().setIterationPosition(sequencePosition);
return runtime.getXProcData().catchError(node);