Package net.sf.saxon.sxpath
package net.sf.saxon.sxpath
This package provides an alternative API for executing XPath expressions
directly from a Java application: unlike the API in package net.sf.saxon.xpath
, these
interfaces are not dependent on JAXP 1.3. The API can be used either in a free-standing
Java application (that is, where there is no XSLT stylesheet), or it can be
used from within Java extension functions called from XPath expressions within
a stylesheet.
The preferred API for executing XPath expressions in Saxon is the s9api
package. This package is older, and provides a lower-level interface that offers access to more
internal details, but is not so convenient to use.
Michael H. Kay
Saxonica Limited
12 June 2009
-
ClassDescriptionAn abstract and configurable implementation of the StaticContext interface, which defines the static context of an XPath expression.This implementation of the XPath static context is mainly used when XPath expressions are hosted in other Saxon processing contexts, for example in xsl:evaluate, or in XSD assertionsAn IndependentContext provides a context for parsing an XPath expression appearing in a context other than a stylesheet.A simple container for standalone XPath expressionsThis object represents the dynamic XPath execution context for use in the free-standing Saxon XPath API.This class provides a native Saxon API for free-standing evaluation of XPath expressions.This class is a representation of an XPath Expression for use with the
XPathEvaluator
class.This interface defines methods that must be provided when Saxon's free-standing XPath API is used.An object representing an XPath variable for use in the standalone XPath API.