11.14. The group Element
The group element describes a named model group. A named model group encapsulates an all element, a choice element, or a sequence element. When a complex type incorporates a named model group (via the ref attribute), the scope of the enclosed components change: The namespace for these components becomes local to the parent element type. Note that there might be many different parent element types when the complex type is global, and the complex type is the structure type of multiple element types.
Listing 11.17 repeats the XML representation of priceGroup. In addition, Listing 11.17 portrays the utility of this group by repeatedly including priceGroup in various catalog entry types.
Listing 11.17. Reuse of a group Element ...
Get XML Schema Complete Reference, The now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.