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.