Examples of initXPath()


Examples of org.apache.xpath.compiler.XPathParser.initXPath()

    XPathParser parser = new XPathParser(errorListener, locator);
    Compiler compiler = new Compiler(errorListener, locator);

    if (SELECT == type)
      parser.initXPath(compiler, exprString, prefixResolver);
    else if (MATCH == type)
      parser.initMatchPattern(compiler, exprString, prefixResolver);
    else
      throw new RuntimeException("Can not deal with XPath type: " + type);
View Full Code Here

Examples of org.apache.xpath.compiler.XPathParser.initXPath()

      // Create the XPath object.
      try{
      XPath xpath = new XPath(fragID, null, nsNode, XPath.MATCH);
      Compiler compiler = new Compiler();
      // Parse the xpath
      parser.initXPath(compiler, "id("+fragID+")", nsNode);
      org.apache.xpath.objects.XObject xobj = xpath.execute(xpathContext, fragBase, nsNode);

      nl = xobj.nodeset();
      if(nl.nextNode() == null)
      {
View Full Code Here

Examples of org.apache.xpath.compiler.XPathParser.initXPath()

        // xobj = Stylesheet.evalXPathStr(getExecContext(), "//*[@id='"+fragID+"']", fragBase, nsNode);
        // Create the XPath object.
        xpath = new XPath(fragID, null, nsNode, XPath.MATCH);

        // Parse the xpath
        parser.initXPath(compiler, "//*[@id='"+fragID+"']", nsNode);
        xobj = xpath.execute(xpathContext, fragBase, nsNode);

        nl = xobj.nodeset();
        if(nl.nextNode() == null)
        {
View Full Code Here

Examples of org.apache.xpath.compiler.XPathParser.initXPath()

          // xobj = Stylesheet.evalXPathStr(getExecContext(), "//*[@name='"+fragID+"']", fragBase, nsNode);
          // Create the XPath object.
          xpath = new XPath(fragID, null, nsNode, XPath.MATCH);

          // Parse the xpath
          parser.initXPath(compiler, "//*[@name='"+fragID+"']", nsNode);
          xobj = xpath.execute(xpathContext, fragBase, nsNode);
          nl = xobj.nodeset();
          if(nl.nextNode() == null)
          {
            // Well, hell, maybe it's an XPath...
View Full Code Here

Examples of org.apache.xpath.compiler.XPathParser.initXPath()

            // Create the XPath object.
            //((StylesheetHandler)( m_processor.getTemplatesBuilder())).getLocator()
            xpath = new XPath(fragID, null, nsNode, XPath.MATCH);

            // Parse the xpath
            parser.initXPath(compiler, fragID, nsNode);
            xobj = xpath.execute(xpathContext, fragBase, nsNode);
            nl = xobj.nodeset();
          }
        }
      }
View Full Code Here

Examples of org.apache.xpath.compiler.XPathParser.initXPath()

            pr = new PrefixResolverDefault(nsNode);

         XPathParser parser = new XPathParser(null, null);
         cmp = new Compiler(null, null);

         parser.initXPath(cmp, xpath, pr);
         ex = cmp.compile(0);

         symbols = context.getSymbols();
         idxMgr = context.getIndexManager();
      }
View Full Code Here

Examples of org.apache.xpath.compiler.XPathParser.initXPath()

        }

        final XPathParser parser = new XPathParser(errorListener, locator);
        final Compiler compiler = new Compiler(errorListener, locator, funcTable_);

        parser.initXPath(compiler, exprString, prefixResolver);

        final Expression expr = compiler.compile(0);

        mainExp_ = expr;
View Full Code Here

Examples of org.apache.xpath.compiler.XPathParser.initXPath()

                    pr = new PrefixResolverDefault(n);
                }

                cmp = createCompiler();
                XPathParser parser = new XPathParser(errorListener, null);
                parser.initXPath(cmp, query, pr);
                ex = cmp.compile(0);

                symbols = context.getSymbols();
                idxMgr = context.getIndexManager();
            } catch (Exception e) {
View Full Code Here

Examples of org.apache.xpath.compiler.XPathParser.initXPath()

      // Create the XPath object.
      try{
      XPath xpath = new XPath(fragID, null, nsNode, XPath.MATCH);
      Compiler compiler = new Compiler();
      // Parse the xpath
      parser.initXPath(compiler, "id("+fragID+")", nsNode);
      org.apache.xpath.objects.XObject xobj = xpath.execute(xpathContext, fragBase, nsNode);

      nl = new org.apache.xml.dtm.ref.DTMNodeIterator(xobj.iter());
      if(nl.nextNode() == null)
      {
View Full Code Here

Examples of org.apache.xpath.compiler.XPathParser.initXPath()

        // xobj = Stylesheet.evalXPathStr(getExecContext(), "//*[@id='"+fragID+"']", fragBase, nsNode);
        // Create the XPath object.
        xpath = new XPath(fragID, null, nsNode, XPath.MATCH);

        // Parse the xpath
        parser.initXPath(compiler, "//*[@id='"+fragID+"']", nsNode);
        xobj = xpath.execute(xpathContext, fragBase, nsNode);

        nl = new org.apache.xml.dtm.ref.DTMNodeIterator(xobj.iter());
        if(nl.nextNode() == null)
        {
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.