Package net.sf.saxon.s9api

Examples of net.sf.saxon.s9api.XPathSelector.evaluate()


  private static XdmValue evaluate(XPathExecutable exec, XdmNode xdm) throws SaxonApiException {
    Activator.logInfo("Evaluating XPath");
    XPathSelector selector = exec.load();
    selector.setContextItem(xdm);
    return selector.evaluate();
  }

  public static String transformResult(XdmValue xdm, boolean isPrettyPrint) throws Exception {
    Activator.logInfo("Transforming result");
View Full Code Here


      if (node == null)
        throw new RuntimeException("Found node is not in AST: " + item);
      if (outputBeforeSelector != null) {
        outputBeforeSelector.setContextItem(item);
        outputBeforeSelector.setVariable(CONTEXT_VARIABLE, item);
        valueToInsertBefore = outputBeforeSelector.evaluate().toString();
      }
      result.put(node, valueToInsertBefore);
    }

    return result;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.