com.icl.saxon.style

Class XSLVariable

public class XSLVariable extends XSLGeneralVariable implements Binding

Handler for xsl:variable elements in stylesheet.
The xsl:variable element has mandatory attribute name and optional attribute select
Method Summary
ValueconstantValue()
Get the value, if known statically.
intgetDataType()
Get the data type, if known statically.
intgetSlotNumber()
booleanisInstruction()
Determine whether this node is an instruction.
voidprocess(Context context)
Process the variable declaration
voidvalidate()
Check that the variable is not already declared, and allocate a slot number

Method Detail

constantValue

public Value constantValue()
Get the value, if known statically.

Returns: the value if known in advance, or null if not.

getDataType

public int getDataType()
Get the data type, if known statically.

Returns: the data type if known

getSlotNumber

public int getSlotNumber()

isInstruction

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

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

process

public void process(Context context)
Process the variable declaration

validate

public void validate()
Check that the variable is not already declared, and allocate a slot number