xs:group
<xs:group name = "NCName
" ref = "NCName
" minOccurs = "nonNegativeInteger
" maxOccurs = "nonNegativeInteger
| unbounded"> <!-- ( xs:annotation?, (xs:all | xs:choice | xs:sequence) ) --> </xs:group>
The xs:group
element can be used in two ways. As a top-level
element with a name
attribute,
it defines a model group that can be referenced from complex types
elsewhere in the schema. The content model of the group is
established by a child xs:all
,
xs:choice
, or xs:sequence
element.
The second use is inside an xs:complexType
element. Here, the
xs:group
element indicates that
the contents of the group should appear at this point in the
instance document at least as many times as indicated by the
minOccurs
attribute and at most
as many times as indicated by the maxOccurs
attribute. The default for
both of these is 1. The group to be included is indicated by the
ref
attribute that contains the
name of a top-level xs:group
element found elsewhere in the schema.