org.apache.xalan.extensions
Interface ExpressionContext
- XPathContext.XPathExpressionContext
public interface ExpressionContext
An object that implements this interface can supply
information about the current XPath expression context.
getContextNode
public Node getContextNode()
Get the current context node.
- The current context node.
getContextNodes
public NodeIterator getContextNodes()
Get the current context node list.
- An iterator for the current context list, as
defined in XSLT.
getErrorListener
public ErrorListener getErrorListener()
Get the error listener.
- The registered error listener.
getVariableOrParam
public XObject getVariableOrParam(QName qname)
throws javax.xml.transform.TransformerException
Get a variable based on it's qualified name.
qname
- The qualified name of the variable.
- The evaluated value of the variable.
getXPathContext
public XPathContext getXPathContext()
throws javax.xml.transform.TransformerException
Get the XPathContext that owns this ExpressionContext.
Note: exslt:function requires the XPathContext to access
the variable stack and TransformerImpl.
- The current XPathContext.
toNumber
public double toNumber(Node n)
Get the value of a node as a number.
n
- Node to be converted to a number. May be null.
toString
public String toString(Node n)
Get the value of a node as a string.
n
- Node to be converted to a string. May be null.
- value of n as a string, or an empty string if n is null.
Copyright B) 2005 Apache XML Project. All Rights Reserved.