public void store(OutputStream out) throws IOException { try { provider.format(source.read(),out,contentType); } catch(SaxonApiException e) { throw new IOException(e); } } });
public void store(OutputStream content) throws IOException { OutputStream out = new BufferedOutputStream(content); try { processor.format(source.read(),out,contentType); } catch (SaxonApiException e) { throw new XProcException(step.getNode(), "Failed to process FO document", e); } finally { out.close(); } } });
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;
JingConfigurer configurer = runtime.getConfigurer().getJingConfigurer(); configurer.configRNC(properties); sr = CompactSchemaReader.getInstance(); } else { configurer.configRNG(properties); sr = new AutoSchemaReader(); schemaInputSource = S9apiUtils.xdmToInputSource(runtime, schema);
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); } } }
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); runtime.getConfigurer().getJaxpConfigurer().configSchemaFactory(factory);
schemaCompiler.setDestination(result); runtime.getConfigurer().getSaxonConfigurer().configSchematron(schemaCompiler.getUnderlyingController().getConfiguration());
runtime.getConfigurer().getSaxonConfigurer().configXQuery(config);
} 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;
JingConfigurer configurer = runtime.getConfigurer().getJingConfigurer(); configurer.configRNC(properties); sr = CompactSchemaReader.getInstance(); } else { configurer.configRNG(properties); sr = new AutoSchemaReader(); schemaInputSource = S9apiUtils.xdmToInputSource(runtime, schema);
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; }
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); } } }
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); runtime.getConfigurer().getJaxpConfigurer().configSchemaFactory(factory);
schemaCompiler.setDestination(result); runtime.getConfigurer().getSaxonConfigurer().configSchematron(schemaCompiler.getUnderlyingController().getConfiguration());
runtime.getConfigurer().getSaxonConfigurer().configXQuery(config);
public void store(OutputStream out) throws IOException { try { provider.format(source.read(),out,contentType); } catch(SaxonApiException e) { throw new IOException(e); } } });
public void store(OutputStream content) throws IOException { OutputStream out = new BufferedOutputStream(content); try { processor.format(source.read(),out,contentType); } catch (SaxonApiException e) { throw new XProcException(step.getNode(), "Failed to process FO document", e); } finally { out.close(); } } });
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: