public void store(OutputStream out) throws IOException { try { provider.format(source.read(),out,contentType); } catch(SaxonApiException e) { throw new IOException(e); } } });
public void run() throws SaxonApiException { super.run(); while (source.moreDocuments()) { XdmNode node = source.read(); } } }
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 void doReplace() throws SaxonApiException { while (replacement.moreDocuments()) { matcher.addSubtree(replacement.read()); } replacement.resetReader(); } }
public void run() throws SaxonApiException { super.run(); RuntimeValue match = getOption(_match); replace = getOption(_replace); for (String prefix : replace.getNamespaceBindings().keySet()) { rns.put(prefix, replace.getNamespaceBindings().get(prefix)); } matcher = new ProcessMatch(runtime, this); matcher.match(source.read(), match); result.write(matcher.getResult()); }
public void run() throws SaxonApiException { super.run(); RuntimeValue match = getOption(_match); replace = getOption(_replace); for (String prefix : replace.getNamespaceBindings().keySet()) { rns.put(prefix, replace.getNamespaceBindings().get(prefix)); } matcher = new ProcessMatch(runtime, this); matcher.match(source.read(), match); result.write(matcher.getResult()); }
public void run() throws SaxonApiException { Processor proc = runtime.getProcessor(); AnnotationsConfigExtension annoExt = new AnnotationsConfigExtension(proc); new ConfigReader(proc, mConfig.read(), annoExt); for (XdmNode annotations : annoExt.getAnnotations(mContentType)) { mResult.write(annotations); } }
private void doInsert() throws SaxonApiException { while (insertion.moreDocuments()) { XdmNode doc = insertion.read(); XdmSequenceIterator iter = doc.axisIterator(Axis.CHILD); while (iter.hasNext()) { XdmNode child = (XdmNode) iter.next(); matcher.addSubtree(child); } } insertion.resetReader(); } }
public void run() throws SaxonApiException { super.run(); ProcessMatch matcher = null; matcher = new ProcessMatch(runtime, this); matcher.match(source.read(), getOption(_match)); XdmNode tree = matcher.getResult(); result.write(tree); }
public void run() throws SaxonApiException { super.run(); matcher = new ProcessMatch(runtime, this); matcher.match(source.read(), getOption(_match)); result.write(matcher.getResult()); }
public void run() throws SaxonApiException { super.run(); matcher = new ProcessMatch(runtime, this); matcher.match(source.read(), getOption(_match)); result.write(matcher.getResult()); }
public void run() throws SaxonApiException { super.run(); ProcessMatch matcher = null; matcher = new ProcessMatch(runtime, this); matcher.match(source.read(), getOption(_match)); XdmNode tree = matcher.getResult(); result.write(tree); }
public void run() throws SaxonApiException { super.run(); position = getOption(_position).getString(); XdmNode doc = source.read(); matcher = new ProcessMatch(runtime, this); matcher.match(doc, getOption(_match)); result.write(matcher.getResult()); }
public void run() throws SaxonApiException { super.run(); position = getOption(_position).getString(); XdmNode doc = source.read(); matcher = new ProcessMatch(runtime, this); matcher.match(doc, getOption(_match)); result.write(matcher.getResult()); }
public void run() throws SaxonApiException { super.run(); HashSet<String> excludeUris = S9apiUtils.excludeInlinePrefixes(step.getNode(), getOption(_prefixes).getString()); while (source.moreDocuments()) { XdmNode doc = source.read(); logger.trace(MessageFormatter.nodeMessage(step.getNode(), "Namespace-delete step " + step.getName() + " read " + doc.getDocumentURI())); doc = S9apiUtils.removeNamespaces(runtime, doc, excludeUris, false); result.write(doc); } } }
public void run() throws SaxonApiException { super.run(); HashSet<String> excludeUris = S9apiUtils.excludeInlinePrefixes(step.getNode(), getOption(_prefixes).getString()); while (source.moreDocuments()) { XdmNode doc = source.read(); logger.trace(MessageFormatter.nodeMessage(step.getNode(), "Namespace-delete step " + step.getName() + " read " + doc.getDocumentURI())); doc = S9apiUtils.removeNamespaces(runtime, doc, excludeUris, false); result.write(doc); } } }
public void run() throws SaxonApiException { super.run(); matcher = new ProcessMatch(runtime, this); matcher.match(source.read(), getOption(_match)); if (source.moreDocuments()) { throw XProcException.dynamicError(6, "Reading source on " + getStep().getName()); } result.write(matcher.getResult()); }
public void run() throws SaxonApiException { super.run(); all = getOption(_all, false); relative = getOption(_relative, true); if (all && relative) { throw XProcException.stepError(58); } matcher = new ProcessMatch(runtime, this); matcher.match(source.read(), new RuntimeValue("*", step.getNode())); XdmNode doc = matcher.getResult(); result.write(doc); }
public void run() throws SaxonApiException { super.run(); matcher = new ProcessMatch(runtime, this); matcher.match(source.read(), getOption(_match)); if (source.moreDocuments()) { throw XProcException.dynamicError(6, "Reading source on " + getStep().getName()); } result.write(matcher.getResult()); }
public void run() throws SaxonApiException { super.run(); all = getOption(_all, false); relative = getOption(_relative, true); if (all && relative) { throw XProcException.stepError(58); } matcher = new ProcessMatch(runtime, this); matcher.match(source.read(), new RuntimeValue("*", step.getNode())); XdmNode doc = matcher.getResult(); result.write(doc); }