com.jclark.xsl.expr

Interface ExprContext

Known Subinterfaces:
ProcessContext
Known Implementing Classes:
DelegateExprContext, FilterNodeIterator, FilterPattern.Context, ProcessContextImpl, WithCurrentExpr.Context

public interface ExprContext

packages up the context available to the XSLT engine when evaluating XPath expressions

Method Summary

Node
getCurrent(Node contextNode)
NodeIterator
getDocument(URL baseURL, String uriRef)
returns a parsed representation of the document at the given URL.
ExtensionContext
getExtensionContext(String namespace)
Variant
getGlobalVariableValue(Name name)
access to the stylesheet's global variables
KeyValuesTable
getKeyValuesTable(Name keyName, Node n)
int
getLastPosition()
Variant
getLocalVariableValue(Name name)
access to the stylesheet's in-scope local variables
int
getPosition()
Variant
getSystemProperty(Name name)
provides access to the system properties for the system-property() function in XSLT 1.0 section 12.4
Node
getTree(Variant v)

Method Details

getCurrent

public Node getCurrent(Node contextNode)


getDocument

public NodeIterator getDocument(URL baseURL,
                                String uriRef)
            throws XSLException
returns a parsed representation of the document at the given URL. ... enables the "document()" function of XSLT 1.0 section 12.1


getExtensionContext

public ExtensionContext getExtensionContext(String namespace)
            throws XSLException


getGlobalVariableValue

public Variant getGlobalVariableValue(Name name)
            throws XSLException
access to the stylesheet's global variables


getKeyValuesTable

public KeyValuesTable getKeyValuesTable(Name keyName,
                                        Node n)

Returns:
the indexed nodes for the named key in the node's document


getLastPosition

public int getLastPosition()
            throws XSLException


getLocalVariableValue

public Variant getLocalVariableValue(Name name)
            throws XSLException
access to the stylesheet's in-scope local variables


getPosition

public int getPosition()
            throws XSLException


getSystemProperty

public Variant getSystemProperty(Name name)
provides access to the system properties for the system-property() function in XSLT 1.0 section 12.4


getTree

public Node getTree(Variant v)
            throws XSLException