public void processAttribute(XdmNode node) throws SaxonApiException { throw XProcException.stepError(23); } }
public boolean processStartDocument(XdmNode node) throws SaxonApiException { throw XProcException.stepError(13); }
public void processAttribute(XdmNode node) throws SaxonApiException { throw XProcException.stepError(23); }
public void processText(XdmNode node) throws SaxonApiException { throw XProcException.stepError(23); }
public void processComment(XdmNode node) throws SaxonApiException { throw XProcException.stepError(23); }
public void processPI(XdmNode node) throws SaxonApiException { throw XProcException.stepError(23); }
public void processComment(XdmNode node) throws SaxonApiException { throw XProcException.stepError(23); }
public void processPI(XdmNode node) throws SaxonApiException { throw XProcException.stepError(23); }
public void processEndDocument(XdmNode node) throws SaxonApiException { throw XProcException.stepError(24); }
public void processText(XdmNode node) throws SaxonApiException { throw XProcException.stepError(23); }
public void run() throws SaxonApiException { String cmethod = getOption(_compression_method, "gzip"); if ("gzip".equals(cmethod)) { method = CompressionMethod.GZIP; } else { throw XProcException.stepError(999, "The only compression method supported is 'gzip'."); } super.run(); } }
private String decodeBase64(XdmNode doc, String charset) { String content = extractText(doc); byte[] decoded = Base64.decode(content); try { return new String(decoded, charset); } catch (UnsupportedEncodingException uee) { throw XProcException.stepError(10, uee); } }
private String decodeBase64(XdmNode doc, String charset) { String content = extractText(doc); byte[] decoded = Base64.decode(content); try { return new String(decoded, charset); } catch (UnsupportedEncodingException uee) { throw XProcException.stepError(10, uee); } }
public void run() throws SaxonApiException { String cmethod = getOption(_compression_method, "gzip"); if ("gzip".equals(cmethod)) { method = CompressionMethod.GZIP; } else { throw XProcException.stepError(999, "The only compression method supported is 'gzip'."); } super.run(); } }
public void processPI(XdmNode node) throws SaxonApiException { if (!"".equals(newName.getNamespaceURI())) { throw XProcException.stepError(13); } matcher.addPI(newName.getLocalName(), node.getStringValue()); }
public void processPI(XdmNode node) throws SaxonApiException { if (!"".equals(newName.getNamespaceURI())) { throw XProcException.stepError(13); } matcher.addPI(newName.getLocalName(), node.getStringValue()); }
private String extractText(XdmNode doc) { String content = ""; XdmSequenceIterator iter = doc.axisIterator(Axis.CHILD); while (iter.hasNext()) { XdmNode child = (XdmNode) iter.next(); if (child.getNodeKind() != XdmNodeKind.TEXT) { throw XProcException.stepError(28); } content += child.getStringValue(); } return content; }
private String extractText(XdmNode doc) { String content = ""; XdmSequenceIterator iter = doc.axisIterator(Axis.CHILD); while (iter.hasNext()) { XdmNode child = (XdmNode) iter.next(); if (child.getNodeKind() != XdmNodeKind.TEXT) { throw XProcException.stepError(28); } content += child.getStringValue(); } return content; }
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(); 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); }