XML Schema - použití skupin

Příklad použití skupin elementů a atributů

  <xs:complexType name="bookType"> <xs:sequence>
  <xs:group ref="mainBookElements"/> <xs:element
  name="character" type="characterType" minOccurs="0"
  maxOccurs="unbounded"/> </xs:sequence>
  <xs:attributeGroup ref="bookAttributes"/>
  </xs:complexType>