Groups (XSM)

A group of elements is a set of elements arranged by a group particle (all, choice or sequence), which is then referenced in the model by various elements.

For example:



The descriptionLines group is reused in the definition of the product element by clicking the sequence group particle (S) with the Toolbox Group tool. The Reference property of the referencing group property sheet is then set to descriptionLines.

In the generated XSD file, the group is first declared with the <group> tag and then reused through a reference (ref) set to descriptionLines:



Note: In a model targeted with DTD or XDR language, there are no global or referencing groups, although they appear on the diagram. Groups are expanded within their parent element and their child elements are declared individually as global elements. (See generated DTD and XDR files in Groups (XSM))