XSLTForms/XForms 2.0/var element

Description

edit

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.

Syntax

edit

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

Examples

edit

[to be supplied]

Known limitations

edit

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

Further information

edit