<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
  
  <xs:element name="person">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="firstname"/>
        <xs:element ref="surname"/>
        <xs:element ref="age"/>
      </xs:sequence>
      <xs:attributeGroup ref="attlist.person"/>
    </xs:complexType>
  </xs:element>
  
  <xs:element name="firstname" type="xs:string"/>
  <xs:element name="surname" type="xs:string"/>
  <xs:element name="age" type="xs:integer"/>
  <xs:element name="notused" type="xs:integer"/>
  
  <xs:attributeGroup name="attlist.person">
    <xs:attribute name="id" use="required"/>
    <xs:attribute name="cc"/>
  </xs:attributeGroup>
</xs:schema>

