private XdmNode expandXIncludes(XdmNode doc) { logger.trace(MessageFormatter.nodeMessage(doc, "Starting expandXIncludes")); ProcessMatch matcher = new ProcessMatch(runtime, this); matcherStack.push(matcher); matcher.match(doc, new RuntimeValue("/|*", step.getNode())); XdmNode result = matcher.getResult(); matcher = matcherStack.pop(); return result; }
private XdmNode expandXIncludes(XdmNode doc) { logger.trace(MessageFormatter.nodeMessage(doc, "Starting expandXIncludes")); ProcessMatch matcher = new ProcessMatch(runtime, this); matcherStack.push(matcher); matcher.match(doc, new RuntimeValue("/|*", step.getNode())); XdmNode result = matcher.getResult(); matcher = matcherStack.pop(); return result; }
public XdmNode fixup(XdmNode node) { matcher = new ProcessMatch(runtime, this); matcher.match(node, new RuntimeValue("*", step.getNode())); XdmNode fixed = matcher.getResult(); return fixed; }
public XdmNode fixup(XdmNode node) { matcher = new ProcessMatch(runtime, this); matcher.match(node, new RuntimeValue("*", step.getNode())); XdmNode fixed = matcher.getResult(); return fixed; }
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 { 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(); for (Tuple t : params) { if (!"".equals(encoded)) { encoded += "&"; } encoded += t.name.getLocalName() + "=" + encode(t.value.getString()); } 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(); 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(); for (Tuple t : params) { if (!"".equals(encoded)) { encoded += "&"; } encoded += t.name.getLocalName() + "=" + encode(t.value.getString()); } 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); }
public void run() throws SaxonApiException { if (step.getNode().getNodeName().equals(XProcConstants.p_document_template)) { logger.trace(MessageFormatter.nodeMessage(step.getNode(), "The template step should be named p:template, the name p:document-template is deprecated.")); } super.run(); if (source.documentCount() > 1) { throw XProcException.stepError(68); } context = source.read(); matcher = new ProcessMatch(runtime, this); matcher.match(template.read(), new RuntimeValue("node()", step.getNode())); result.write(matcher.getResult()); }
public void run() throws SaxonApiException { if (step.getNode().getNodeName().equals(XProcConstants.p_document_template)) { logger.trace(MessageFormatter.nodeMessage(step.getNode(), "The template step should be named p:template, the name p:document-template is deprecated.")); } super.run(); if (source.documentCount() > 1) { throw XProcException.stepError(68); } context = source.read(); matcher = new ProcessMatch(runtime, this); matcher.match(template.read(), new RuntimeValue("node()", step.getNode())); result.write(matcher.getResult()); }