Package net.sf.saxon.xpath

Examples of net.sf.saxon.xpath.XPathEvaluator.evaluateSingle()


        System.err.println("Stylesheet built OK");

        Transformer transformer = templates.newTransformer();
        XPathEvaluator xpath = new XPathEvaluator();
        xpath.setSource(new StreamSource(new File(sourceID).toURL().toString()));
        NodeInfo node = (NodeInfo)xpath.evaluateSingle("/*/*[1]");

        System.err.println("Source document built OK");

        TinyBuilder builder = new TinyBuilder();
        transformer.transform(node, builder);
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.