Bindings and relevanceAdded by IBM on August 8, 2013 | Version 1 (Original)
|The relevance of display elements is determined based on their binding.
For example, if a field in the form is bound to element <x> in the data model, then that field inherits its relevance from element <x>. If an item becomes non-relevant, then its visible and active options default to off.
The xforms:group, xforms:switch, and xforms:repeat options override the relevance of any display elements they contain.
For example, consider the following xforms:group:
In this case, the relevance of the group as a whole is determined by the <x> element. This means that if <x> is not relevant, then neither of the fields are considered relevant regardless of that status of <y> or <z> (which may be relevant even if <x> is not because they are siblings of <x>).
Furthermore, if an xforms:repeat is bound to a nodeset that contains no relevant nodes, then the visible and active options of the containing table default to off.
This overriding behavior ensures that grouped items are always displayed or hidden as a group, rather than as individual items.