|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.excalibur.xml.xpath.AbstractProcessorImpl
org.apache.excalibur.xml.xpath.Saxon8ProcessorImpl
public class Saxon8ProcessorImpl
This class defines the implementation of the XPathProcessor
component. This implementation depends on Saxon 8.X XSLT processor.
This implementation was tested with Saxon 8.7 release.
To configure it, add the following lines in the
<xslt-processor class="org.apache.cocoon.components.xpath.Saxon7ProcessorImpl"> </xslt-processor>
| Field Summary |
|---|
| Fields inherited from interface org.apache.excalibur.xml.xpath.XPathProcessor |
|---|
ROLE |
| Constructor Summary | |
|---|---|
Saxon8ProcessorImpl()
|
|
| Method Summary | |
|---|---|
boolean |
evaluateAsBoolean(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
Number |
evaluateAsNumber(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
String |
evaluateAsString(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
Evaluate XPath expression within a context. |
org.w3c.dom.NodeList |
selectNodeList(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
Use an XPath string to select a nodelist. |
org.w3c.dom.Node |
selectSingleNode(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
Use an XPath string to select a single node. |
| Methods inherited from class org.apache.excalibur.xml.xpath.AbstractProcessorImpl |
|---|
configure, evaluateAsBoolean, evaluateAsNumber, evaluateAsString, prefixToNamespace, selectNodeList, selectSingleNode |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Saxon8ProcessorImpl()
| Method Detail |
|---|
public boolean evaluateAsBoolean(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
evaluateAsBoolean in interface XPathProcessorevaluateAsBoolean in class AbstractProcessorImplcontextNode - The context node.str - A valid XPath string.resolver - a PrefixResolver, used for resolving namespace prefixes
public Number evaluateAsNumber(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
evaluateAsNumber in interface XPathProcessorevaluateAsNumber in class AbstractProcessorImplcontextNode - The context node.str - A valid XPath string.resolver - a PrefixResolver, used for resolving namespace prefixes
public String evaluateAsString(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
evaluateAsString in interface XPathProcessorevaluateAsString in class AbstractProcessorImplcontextNode - The context node.str - A valid XPath string.resolver - a PrefixResolver, used for resolving namespace prefixes
public org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
AbstractProcessorImpl
selectSingleNode in interface XPathProcessorselectSingleNode in class AbstractProcessorImplcontextNode - The node to start searching from.str - A valid XPath string.resolver - a PrefixResolver, used for resolving namespace prefixes
public org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node contextNode,
String str,
PrefixResolver resolver)
AbstractProcessorImpl
selectNodeList in interface XPathProcessorselectNodeList in class AbstractProcessorImplcontextNode - The node to start searching from.str - A valid XPath string.resolver - a PrefixResolver, used for resolving namespace prefixes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||