The itemset element

Release 2.0 - ...

This element allows the creation of dynamic selections within controls select and select1, where the available choices are determined at run-time. The node-set that holds the available choices is specified via the Node Set Binding.

Child elements label and value indirectly specify the label and storage values. Notice that the run-time effect of itemset is the same as using element choices with child item elements to statically author the available choices.

Example

XML CopyCode image Copy Code
<xforms:itemset bind="bind_car">
   <xforms:label ref="."></xforms:label>
   <xforms:value ref="."></xforms:value>
</xforms:itemset>

Attributes

Name Required / optional Description
Common Attributes optional Any attribute from the Common Attributes collection (e.g. id).
Node-Set Binding Attributes required One or more attributes from the Node-Set Binding Attributes group.

Content

Within anĀ itemset element, the following child elements are allowed:

Element Name Required / optional Description
label required Provides a descriptive label for the containing form control.
value | copy required value or copy element.
UI Common optional Any element from the UI Common content set (help, hint, alert, any element from the Action group).

Specification

Link to the XForms specification: the itemset element.