XSLTForms/XForms 2.0/var element

DescriptionEdit

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

SyntaxEdit

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

ExamplesEdit

[to be supplied]

Known limitationsEdit

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

Further informationEdit