com.icl.saxon.style

Class XSLGeneralVariable

public abstract class XSLGeneralVariable extends StyleElement

This class defines common behaviour across xsl:variable, xsl:param, and xsl:with-param
Field Summary
protected booleanassignable
protected booleanglobal
protected Procedureprocedure
protected booleanredundant
protected Expressionselect
protected StringsimpleText
protected intvariableFingerprint
Method Summary
voidcheckDuplicateDeclaration()
Check whether this declaration duplicates another one
ProceduregetOwningProcedure()
Get the owning Procedure definition, if this is a local variable
ProceduregetProcedure()
Get associated Procedure (for details of stack frame, if this is a global variable containing local variable declarations)
protected ValuegetSelectValue(Context context)
Get the value of the select expression if present or the content of the element otherwise
intgetVariableFingerprint()
Get the fingerprint of the variable name
StringgetVariableName()
Get the display name of the variable.
booleanisAssignable()
Test whether it is permitted to assign to the variable using the saxon:assign extension element.
booleanisGlobal()
booleanmayContainTemplateBody()
Determine whether this type of element is allowed to contain a template-body
voidprepareAttributes()
voidpreprocess()
Preprocess: this ensures space is available for local variables declared within this global variable
voidvalidate()

Field Detail

assignable

protected boolean assignable

global

protected boolean global

procedure

protected Procedure procedure

redundant

protected boolean redundant

select

protected Expression select

simpleText

protected String simpleText

variableFingerprint

protected int variableFingerprint

Method Detail

checkDuplicateDeclaration

public void checkDuplicateDeclaration()
Check whether this declaration duplicates another one

getOwningProcedure

public Procedure getOwningProcedure()
Get the owning Procedure definition, if this is a local variable

getProcedure

public Procedure getProcedure()
Get associated Procedure (for details of stack frame, if this is a global variable containing local variable declarations)

getSelectValue

protected Value getSelectValue(Context context)
Get the value of the select expression if present or the content of the element otherwise

getVariableFingerprint

public int getVariableFingerprint()
Get the fingerprint of the variable name

getVariableName

public String getVariableName()
Get the display name of the variable.

isAssignable

public boolean isAssignable()
Test whether it is permitted to assign to the variable using the saxon:assign extension element. This will only be true if the extra attribute saxon:assignable="yes" is present.

isGlobal

public boolean isGlobal()

mayContainTemplateBody

public boolean mayContainTemplateBody()
Determine whether this type of element is allowed to contain a template-body

Returns: true: yes, it may contain a template-body

prepareAttributes

public void prepareAttributes()

preprocess

public void preprocess()
Preprocess: this ensures space is available for local variables declared within this global variable

validate

public void validate()