com.jclark.xsl.tr

Interface ProcessContext

All Superinterfaces:
ExprContext
Known Implementing Classes:
ProcessContextImpl

public interface ProcessContext
extends ExprContext

Processing context for a Stylesheet (Sheet) maintains state for a transformation, and actually does the dispatching of the transformation work by calling invoke() on Actions

Nested Class Summary

static interface
ProcessContext.Memento

Method Summary

void
applyImports(Node node, Result result)
void
bindLocalVariable(Name name, Variant variant)
binds a varaible to the given Name
ProcessContext.Memento
createMemento()
Result
createNodeResult(Node baseNode, Node[] rootNodeRef)
Object
get(Object key)
Variant
getParam(Name name)
SaxFilterMaker
getSaxExtensionFilter()
returns an XRAP (Extension element) processor, packaged as a SAX filter
void
invoke(NodeIterator nodes, Action action, Result result)
void
invokeWithParams(Action action, Name[] paramNames, Variant[] paramValues, Node node, Result result)
void
process(NodeIterator nodes, Name modeName, Name[] paramNames, Variant[] paramValues, Result result)
perform the transformation
void
put(Object key, Object value)
Name
unaliasName(Name name)
NamespacePrefixMap
unaliasNamespacePrefixMap(NamespacePrefixMap map)
void
unbindLocalVariables(int n)
void
useAttributeSet(Name name, Node node, Result result)

Methods inherited from interface com.jclark.xsl.expr.ExprContext

getCurrent, getDocument, getExtensionContext, getGlobalVariableValue, getKeyValuesTable, getLastPosition, getLocalVariableValue, getPosition, getSystemProperty, getTree

Method Details

applyImports

public void applyImports(Node node,
                         Result result)
            throws XSLException

bindLocalVariable

public void bindLocalVariable(Name name,
                              Variant variant)
            throws XSLException
binds a varaible to the given Name

createMemento

public ProcessContext.Memento createMemento()

createNodeResult

public Result createNodeResult(Node baseNode,
                               Node[] rootNodeRef)
            throws XSLException

get

public Object get(Object key)

getParam

public Variant getParam(Name name)
            throws XSLException
Returns:
the parameter bound to the given name

getSaxExtensionFilter

public SaxFilterMaker getSaxExtensionFilter()
returns an XRAP (Extension element) processor, packaged as a SAX filter

invoke

public void invoke(NodeIterator nodes,
                   Action action,
                   Result result)
            throws XSLException

invokeWithParams

public void invokeWithParams(Action action,
                             Name[] paramNames,
                             Variant[] paramValues,
                             Node node,
                             Result result)
            throws XSLException

process

public void process(NodeIterator nodes,
                    Name modeName,
                    Name[] paramNames,
                    Variant[] paramValues,
                    Result result)
            throws XSLException
perform the transformation

put

public void put(Object key,
                Object value)

unaliasName

public Name unaliasName(Name name)

unaliasNamespacePrefixMap

public NamespacePrefixMap unaliasNamespacePrefixMap(NamespacePrefixMap map)

unbindLocalVariables

public void unbindLocalVariables(int n)

useAttributeSet

public void useAttributeSet(Name name,
                            Node node,
                            Result result)
            throws XSLException