< XSLTForms < XForms 2.0
Description
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
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 xf:repeat
elements.
Further information
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.