Package org.apache.xalan.xpath.xml

Examples of org.apache.xalan.xpath.xml.PrefixResolverDefault


   
    protected void prepare() throws Exception {
        // Create an object to resolve namespace prefixes.
        // XPath namespaces are resolved from the input root node's
        // document element if it is a root node, or else the current root node.
        prefixResolver = namespace != null ? new PrefixResolverDefault (namespace):
                                             new PrefixResolverDefault (rootNode);

        // parse the specified Query-String and build an Parse-Tree
        parser.initXPath (xpath, qstring, prefixResolver);

        hasChanged = false;
View Full Code Here


    // Create an object to resolve namespace prefixes.
    // XPath namespaces are resolved from the input context node's document element
    // if it is a root node, or else the current context node (for lack of a better
    // resolution space, given the simplicity of this sample code).
    PrefixResolverDefault prefixResolver = new PrefixResolverDefault((contextNode.getNodeType() == Node.DOCUMENT_NODE)
                                                         ? ((Document)contextNode).getDocumentElement() :
                                                           contextNode);

    // Create the XPath object.
    XPath xpath = new XPath();
View Full Code Here

    // Create an object to resolve namespace prefixes.
    // XPath namespaces are resolved from the input context node's document element
    // if it is a root node, or else the current context node (for lack of a better
    // resolution space, given the simplicity of this sample code).
    PrefixResolverDefault prefixResolver = new PrefixResolverDefault((contextNode.getNodeType() == Node.DOCUMENT_NODE)
                                                         ? ((Document)contextNode).getDocumentElement() :
                                                           contextNode);

    // Create the XPath object.
    XPath xpath = new XPath();
View Full Code Here

TOP

Related Classes of org.apache.xalan.xpath.xml.PrefixResolverDefault

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.