Examples of nodeset()


Examples of org.apache.xalan.xpath.XObject.nodeset()

          // Query from the node, according the the select pattern in the
          // use attribute in xsl:key.
          XObject xuse = kd.m_use.execute(xmlLiaison, testNode, nscontext);

          NodeList nl = xuse.nodeset();
          if(0 == nl.getLength())
            continue;
         
          // Use each node in the node list as a key value that we'll be
          // able to use to look up the given node.
View Full Code Here

Examples of org.apache.xalan.xpath.XObject.nodeset()

            // Query from the node, according the the select pattern in the
            // use attribute in xsl:key.
            XObject xuse = kd.m_use.execute(execContext, testNode, nscontext);

            NodeList nl = xuse.nodeset();
            if(0 == nl.getLength())
              continue;
           
            // Use each node in the node list as a key value that we'll be
            // able to use to look up the given node.
View Full Code Here

Examples of org.apache.xalan.xpath.XObject.nodeset()

  {
    // Execute the XPath, and have it return the result
    XObject list = eval(contextNode, str, namespaceNode);

    // Have the XObject return its result as a NodeSet.
    return list.nodeset();

  }

/**
   * Evaluate XPath string to an XObject.  Using this method,
View Full Code Here

Examples of org.apache.xpath.objects.XObject.nodeset()

      } else {
        object = xpathAPI.eval(contextNode, expression);
      }
      switch (object.getType()) {
      case XObject.CLASS_NODESET:
        value = object.nodeset().nextNode();
        break;
      case XObject.CLASS_BOOLEAN:
        value = object.bool() ? Boolean.TRUE : Boolean.FALSE;
        break;
      case XObject.CLASS_NUMBER:
View Full Code Here

Examples of org.apache.xpath.objects.XObject.nodeset()

    try {
      Object value;
      XObject object = xpathAPI.eval(contextNode, expression);
      switch (object.getType()) {
        case XObject.CLASS_NODESET:
          value = object.nodeset().nextNode();
          break;
        case XObject.CLASS_BOOLEAN:
          value = object.bool() ? Boolean.TRUE : Boolean.FALSE;
          break;
        case XObject.CLASS_NUMBER:
View Full Code Here

Examples of org.apache.xpath.objects.XObject.nodeset()

          //       which may not match the javaClass, causing a RuntimeException.
          // if((NodeIterator.class.isAssignableFrom(javaClass)) ||
          if ( (javaClass == NodeIterator.class) ||
               (javaClass == java.lang.Object.class) )
          {
            return xobj.nodeset();
          }
          // Same comment as above
          // else if(NodeList.class.isAssignableFrom(javaClass))
          else if(javaClass == NodeList.class)
          {
View Full Code Here

Examples of org.apache.xpath.objects.XObject.nodeset()

          //       which may not match the javaClass, causing a RuntimeException.
          // if((NodeIterator.class.isAssignableFrom(javaClass)) ||
          if ( (javaClass == NodeIterator.class) ||
               (javaClass == java.lang.Object.class) )
          {
            return xobj.nodeset();
          }
          // Same comment as above
          // else if(NodeList.class.isAssignableFrom(javaClass))
          else if(javaClass == NodeList.class)
          {
View Full Code Here

Examples of org.apache.xpath.objects.XObject.nodeset()

          //       which may not match the javaClass, causing a RuntimeException.
          // if((NodeIterator.class.isAssignableFrom(javaClass)) ||
          if ( (javaClass == NodeIterator.class) ||
               (javaClass == java.lang.Object.class) )
          {
            return xobj.nodeset();
          }
          // Same comment as above
          // else if(NodeList.class.isAssignableFrom(javaClass))
          else if(javaClass == NodeList.class)
          {
View Full Code Here

Examples of org.apache.xpath.objects.XObject.nodeset()

    // Execute the XPath, and have it return the result
    XObject list = eval(contextNode, str, namespaceNode);

    // Have the XObject return its result as a NodeSetDTM.               
    return list.nodeset();
  }

  /**
   *  Use an XPath string to select a nodelist.
   *  XPath namespace prefixes are resolved from the contextNode.
View Full Code Here

Examples of org.apache.xpath.objects.XObject.nodeset()

    // Execute the XPath, and have it return the result
    XObject list = eval(contextNode, str, namespaceNode);

    // Have the XObject return its result as a NodeSetDTM.               
    return list.nodeset();
  }

  /**
   *  Use an XPath string to select a nodelist.
   *  XPath namespace prefixes are resolved from the contextNode.
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.