org.apache.cocoon.components.xpath
Interface XPathProcessor
- All Superinterfaces:
- org.apache.avalon.framework.component.Component
- All Known Implementing Classes:
- XPathProcessorImpl
Deprecated. Use the org.apache.avalon.excalibur.xml.xpath.XPathProcessor instead.
- public interface XPathProcessor
- extends org.apache.avalon.framework.component.Component
This is the interface of the XPath processor in Cocoon.
- Version:
- CVS $Id: XPathProcessor.java,v 1.6 2002/03/13 16:28:02 cziegeler Exp $
- Author:
- Davanum Srinivas
Field Summary |
static java.lang.String |
ROLE
Deprecated. The role implemented by an XSLTProcessor . |
Method Summary |
org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node contextNode,
java.lang.String str)
Deprecated. Use an XPath string to select a nodelist.
|
org.w3c.dom.Node |
selectSingleNode(org.w3c.dom.Node contextNode,
java.lang.String str)
Deprecated. Use an XPath string to select a single node. |
ROLE
public static final java.lang.String ROLE
- Deprecated.
- The role implemented by an
XSLTProcessor
.
selectSingleNode
public org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode,
java.lang.String str)
- Deprecated.
- Use an XPath string to select a single node. XPath namespace
prefixes are resolved from the context node, which may not
be what you want (see the next method).
- Parameters:
contextNode
- The node to start searching from.str
- A valid XPath string.- Returns:
- The first node found that matches the XPath, or null.
selectNodeList
public org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node contextNode,
java.lang.String str)
- Deprecated.
- Use an XPath string to select a nodelist.
XPath namespace prefixes are resolved from the contextNode.
- Parameters:
contextNode
- The node to start searching from.str
- A valid XPath string.- Returns:
- A List, should never be null.
Copyright � 1999-2002 Apache Software Foundation. All Rights Reserved.