net.sf.saxon.instruct

Class LocalParam

public final class LocalParam extends GeneralVariable

The compiled form of an xsl:param element in the stylesheet or an external variable in a Query.
The xsl:param element in XSLT has mandatory attribute name and optional attribute select. It can also be specified as required="yes" or required="no". In standard XQuery external variables are always required, and no default value can be specified; but Saxon provides an extension pragma that allows a query to specify a default.
Method Summary
ValueRepresentationevaluateVariable(XPathContext c)
Evaluate the variable
intgetInstructionNameCode()
Get the name of this instruction for diagnostic and tracing purposes
IteratoriterateSubExpressions()
Get all the XPath expressions associated with this instruction (in XSLT terms, the expression present on attributes of the instruction, as distinct from the child instructions in a sequence construction)
TailCallprocessLeavingTail(XPathContext context)
Process the local parameter declaration
voidsetConversion(Expression convertor)
Define a conversion that is to be applied to the supplied parameter value.

Method Detail

evaluateVariable

public ValueRepresentation evaluateVariable(XPathContext c)
Evaluate the variable

getInstructionNameCode

public int getInstructionNameCode()
Get the name of this instruction for diagnostic and tracing purposes

iterateSubExpressions

public Iterator iterateSubExpressions()
Get all the XPath expressions associated with this instruction (in XSLT terms, the expression present on attributes of the instruction, as distinct from the child instructions in a sequence construction)

processLeavingTail

public TailCall processLeavingTail(XPathContext context)
Process the local parameter declaration

setConversion

public void setConversion(Expression convertor)
Define a conversion that is to be applied to the supplied parameter value.

Parameters: convertor