public void run() throws SaxonApiException { super.run(); try { XdmNode doc = runtime.getConfigurer().getXMLCalabashConfigurer().loadDocument(this); result.write(doc); } catch (XProcException e) { logger.debug(e.getMessage(), e); if (err_XD0011.equals(e.getErrorCode())) { RuntimeValue href = getOption(_href); String baseURI = href.getBaseURI().toASCIIString(); boolean validate = getOption(_dtd_validate, false); throw XProcException.stepError(11, "Could not load " + href.getString() + " (" + baseURI + ") dtd-validate=" + validate); } throw e; } catch (Exception e) { throw new XProcException(e); } } }
public void run() throws SaxonApiException { super.run(); try { XdmNode doc = runtime.getConfigurer().getXMLCalabashConfigurer().loadDocument(this); result.write(doc); } catch (XProcException e) { logger.debug(e.getMessage(), e); if (err_XD0011.equals(e.getErrorCode())) { RuntimeValue href = getOption(_href); String baseURI = href.getBaseURI().toASCIIString(); boolean validate = getOption(_dtd_validate, false); throw XProcException.stepError(11, "Could not load " + href.getString() + " (" + baseURI + ") dtd-validate=" + validate); } throw e; } catch (Exception e) { throw new XProcException(e); } } }
private XPipeline _load(Input pipelineInput) throws SaxonApiException, IOException { reset(); configurer.getXMLCalabashConfigurer().configRuntime(this); switch (pipelineInput.getKind()) { case URI:
private XPipeline _load(Input pipelineInput) throws SaxonApiException, IOException { reset(); configurer.getXMLCalabashConfigurer().configRuntime(this); switch (pipelineInput.getKind()) { case URI:
private XPipeline _use(XdmNode p_pipeline) throws SaxonApiException { reset(); configurer.getXMLCalabashConfigurer().configRuntime(this); pipeline = parser.usePipeline(p_pipeline); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } XRootStep root = new XRootStep(this); DeclareStep decl = pipeline.getDeclaration(); decl.setup(); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } xpipeline = new XPipeline(this, pipeline, root); xpipeline.instantiate(decl); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } return xpipeline; }
private XPipeline _use(XdmNode p_pipeline) throws SaxonApiException { reset(); configurer.getXMLCalabashConfigurer().configRuntime(this); pipeline = parser.usePipeline(p_pipeline); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } XRootStep root = new XRootStep(this); DeclareStep decl = pipeline.getDeclaration(); decl.setup(); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } xpipeline = new XPipeline(this, pipeline, root); xpipeline.instantiate(decl); if (errorCode != null) { throw new XProcException(errorCode, errorMessage); } return xpipeline; }
} else if (binding.getBindingType() == Binding.DOCUMENT_BINDING) { DocumentBinding dbinding = (DocumentBinding) binding; pipe = runtime.getConfigurer().getXMLCalabashConfigurer().makeReadableDocument(runtime, dbinding); } else if (binding.getBindingType() == Binding.DATA_BINDING) { DataBinding dbinding = (DataBinding) binding; pipe = runtime.getConfigurer().getXMLCalabashConfigurer().makeReadableData(runtime, dbinding); } else if (binding.getBindingType() == Binding.ERROR_BINDING) { XCompoundStep step = parent;
} else if (binding.getBindingType() == Binding.DOCUMENT_BINDING) { DocumentBinding dbinding = (DocumentBinding) binding; pipe = runtime.getConfigurer().getXMLCalabashConfigurer().makeReadableDocument(runtime, dbinding); } else if (binding.getBindingType() == Binding.DATA_BINDING) { DataBinding dbinding = (DataBinding) binding; pipe = runtime.getConfigurer().getXMLCalabashConfigurer().makeReadableData(runtime, dbinding); } else if (binding.getBindingType() == Binding.ERROR_BINDING) { XCompoundStep step = parent;