This class defines common behaviour across xsl:variable, xsl:param, and xsl:with-param
assignable
protected boolean assignable
global
protected boolean global
redundant
protected boolean redundant
simpleText
protected String simpleText
variableFingerprint
protected int variableFingerprint
checkDuplicateDeclaration
public void checkDuplicateDeclaration()
throws TransformerConfigurationException
Check whether this declaration duplicates another one
getOwningProcedure
public Procedure getOwningProcedure()
throws TransformerConfigurationException
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)
throws TransformerException
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
- mayContainTemplateBody in interface StyleElement
- true: yes, it may contain a template-body
prepareAttributes
public void prepareAttributes()
throws TransformerConfigurationException
- prepareAttributes in interface StyleElement
preprocess
public void preprocess()
throws TransformerConfigurationException
Preprocess: this ensures space is available for local variables declared within
this global variable
- preprocess in interface StyleElement
validate
public void validate()
throws TransformerConfigurationException
- validate in interface StyleElement