FileDocCategorySizeDatePackage
ExpressionContext.javaAPI DocJava SE 6 API2731Tue Jun 10 00:22:24 BST 2008com.sun.org.apache.xalan.internal.extensions

ExpressionContext

public interface ExpressionContext
An object that implements this interface can supply information about the current XPath expression context.

Fields Summary
Constructors Summary
Methods Summary
public org.w3c.dom.NodegetContextNode()
Get the current context node.

return
The current context node.

public org.w3c.dom.traversal.NodeIteratorgetContextNodes()
Get the current context node list.

return
An iterator for the current context list, as defined in XSLT.

public javax.xml.transform.ErrorListenergetErrorListener()
Get the error listener.

return
The registered error listener.

public com.sun.org.apache.xpath.internal.objects.XObjectgetVariableOrParam(com.sun.org.apache.xml.internal.utils.QName qname)
Get a variable based on it's qualified name.

param
qname The qualified name of the variable.
return
The evaluated value of the variable.
throws
javax.xml.transform.TransformerException

public com.sun.org.apache.xpath.internal.XPathContextgetXPathContext()
Get the XPathContext that owns this ExpressionContext. Note: exslt:function requires the XPathContext to access the variable stack and TransformerImpl.

return
The current XPathContext.
throws
javax.xml.transform.TransformerException

public doubletoNumber(org.w3c.dom.Node n)
Get the value of a node as a number.

param
n Node to be converted to a number. May be null.
return
value of n as a number.

public java.lang.StringtoString(org.w3c.dom.Node n)
Get the value of a node as a string.

param
n Node to be converted to a string. May be null.
return
value of n as a string, or an empty string if n is null.