org.apache.xalan.templates
public class ElemVariable extends ElemTemplateElement
Constructor Summary | |
---|---|
ElemVariable()
Constructor ElemVariable
| |
ElemVariable(ElemVariable param)
Copy constructor.
|
Method Summary | |
---|---|
ElemTemplateElement | appendChild(ElemTemplateElement elem)
Add a child to the child list. |
void | compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition. |
void | endCompose(StylesheetRoot sroot)
This after the template's children have been composed. |
void | execute(TransformerImpl transformer)
Execute a variable declaration and push it onto the variable stack. |
int | getIndex()
If this element is not at the top-level, get the relative position of the
variable into the stack frame. |
boolean | getIsTopLevel()
Get if this is a top-level variable or param, or not. |
QName | getName()
Get the "name" attribute.
|
String | getNodeName()
Return the node name.
|
XPath | getSelect()
Get the "select" attribute.
|
XObject | getValue(TransformerImpl transformer, int sourceNode)
Get the XObject representation of the variable.
|
int | getXSLToken()
Get an integer representation of the element type.
|
boolean | isPsuedoVar()
Tell if this is a psuedo variable reference, declared by Xalan instead
of by the user. |
void | recompose(StylesheetRoot root)
This function is called during recomposition to
control how this element is composed. |
void | setIndex(int index)
Sets the relative position of this variable within the stack frame (if local)
or the global area (if global). |
void | setIsTopLevel(boolean v)
Set if this is a top-level variable or param, or not. |
void | setName(QName v)
Set the "name" attribute.
|
void | setParentElem(ElemTemplateElement p)
Set the parent as an ElemTemplateElement.
|
void | setSelect(XPath v)
Set the "select" attribute.
|
Parameters: param An element created from an xsl:variable
Throws: TransformerException
Parameters: elem New element to append to this element's children list
Returns: null if the select attribute was present, otherwise the child just added to the child list
Parameters: transformer non-null reference to the the current transform-time state.
Throws: TransformerException
See Also: variables in XSLT Specification
Returns: Boolean indicating whether this is a top-level variable or param, or not.
Returns: Value of the "name" attribute.
See Also: qname in XSLT Specification
Returns: The node name
Returns: Value of the "select" attribute.
Parameters: transformer non-null reference to the the current transform-time state. sourceNode non-null reference to the current source node.
Returns: the XObject representation of the variable.
Throws: TransformerException
Returns: An integer representation of the element, defined in the Constants class.
See Also: Constants
Parameters: root The root stylesheet for this transformation.
Parameters: v Boolean indicating whether this is a top-level variable or param, or not.
Parameters: v Value to set for the "name" attribute.
See Also: qname in XSLT Specification
Parameters: p This node's parent as an ElemTemplateElement
Parameters: v Value to set for the "select" attribute.