XSLTForms/XForms 2.0/var element

Description
The  element declares a local variable and binds a value to the variable; the value is calculated from the   attribute if present, and otherwise from the content of the   element. The variable thus declared is in scope for all following siblings of the  element and for their descendants.

Syntax
var name="name" value="/exampleNode"

Examples
[to be supplied]

Known limitations
Current versions of XSLTForms [February 2017] appear to have some difficulties with references from expressions on nested  elements.

Further information

 * Alain Couthures to xsltforms-support, 19 Nov 2016, Grouping in XSLTForms