The group element

Release 2.0 - ...

The group element is used as a container for defining a hierarchy of form controls. Groups can be nested to create complex hierarchies. The author-optional label element has special significance when it appears as the first element child of group, representing a label for the entire group.

Example

XML CopyCode image Copy Code
<xf:group ref="/a:Address" appearance="full">
 <xf:label>Mailing Address</xf:label>
 <!-- other elements -->
</xf:group>

Attributes

Name Required / optional Description
Common Attributes optional Any attribute from the Common Attributes collection (e.g. id).
Single Node Binding Attributes optional One or more attributes from the Single Node Binding Attributes group (ref, model, bind).
UI Common Attributes optional Any attribute from the UI Common Attributes group (appearance, class, navindex, accesskey).

Content

Within an group element, the following child elements are allowed:

Element Name Required / optional Description
label optional Provides a descriptive label for the entire group.
Core Form Controls optional Any element from the Core Form Controls group.
Container Form Controls optional Any element from the Container Form Controls group.
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 group element.