Package net.sf.saxon.dom

Examples of net.sf.saxon.dom.NodeWrapper$ChildEnumeration


    public NodeInfo setSource(Source source) throws net.sf.saxon.trans.XPathException {
        if (source instanceof DOMSource) {
            Node node = ((DOMSource)source).getNode();
            String baseURI = source.getSystemId();
            DocumentWrapper documentWrapper = new DocumentWrapper(node.getOwnerDocument(), baseURI, config);
            NodeWrapper nodeWrapper = documentWrapper.wrap(node);
            if (stripSpace) {
                SpaceStrippedDocument sdoc = new SpaceStrippedDocument(documentWrapper, AllElementStripper.getInstance());
                return sdoc.wrap(nodeWrapper);
            } else {
                return nodeWrapper;
View Full Code Here


        Text textNode = doc.createTextNode(data);
        inputs.add(textNode);
        inputs.add(Arrays.asList(textNode));

        DocumentWrapper dw = new DocumentWrapper(doc, "", new Configuration());
        NodeWrapper nw = dw.wrap(textNode);
        inputs.add(nw);

        for (int i = 0; i < inputs.size(); i++) {
            assertEquals(expectedResult, JaxpFunctionResolver.Helper.extractString(inputs.get(i)));
        }
View Full Code Here

        Text textNode = doc.createTextNode(data);
        inputs.add(textNode);
        inputs.add(Arrays.asList(textNode));

        DocumentWrapper dw = new DocumentWrapper(doc, "", new Configuration());
        NodeWrapper nw = dw.wrap(textNode);
        inputs.add(nw);

        for (int i = 0; i < inputs.size(); i++) {
            assertEquals(expectedResult, JaxpFunctionResolver.Helper.extractString(inputs.get(i)));
        }
View Full Code Here

TOP

Related Classes of net.sf.saxon.dom.NodeWrapper$ChildEnumeration

Copyright © 2018 www.massapicom. 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.