<t:variable>

The <t:variable>-element declares a variable. The variable can be accessed in OCL expressions in template elements following the variable declaration. The scope of the variable ends at the closing tag of the immediate parent element. In contrast fo XSLT, it is possible to alter the value of a variable with the <t:assign>-element.

Attributes

name
(required) The name of the variable to be declared.
expr
(required) An OCL-expression determining the initial value and type of the variable.