net.sf.saxon.style

Class XSLVariable

public class XSLVariable extends XSLVariableDeclaration

Handler for xsl:variable elements in stylesheet.
The xsl:variable element has mandatory attribute name and optional attribute select
Method Summary
Expressioncompile(Executable exec)
Compile: used only for global variables.
ExpressioncompileLocalVariable(Executable exec)
SequenceTypegetRequiredType()
Get the static type of the variable.
booleanisInstruction()
Determine whether this node is an instruction.
voidprepareAttributes()

Method Detail

compile

public Expression compile(Executable exec)
Compile: used only for global variables. This method ensures space is available for local variables declared within this global variable

compileLocalVariable

public Expression compileLocalVariable(Executable exec)

getRequiredType

public SequenceType getRequiredType()
Get the static type of the variable. This is the declared type, unless the value is statically known and constant, in which case it is the actual type of the value.

isInstruction

public boolean isInstruction()
Determine whether this node is an instruction.

Returns: true - it is an instruction (well, it can be, anyway)

prepareAttributes

public void prepareAttributes()