XSLTForms/XForms 2.0/var element

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Description[edit | edit source]

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 | edit source]

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

Examples[edit | edit source]

[to be supplied]

Known limitations[edit | edit source]

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

Further information[edit | edit source]