1<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="attr_group_simple" elementFormDefault="qualified"> 2 <xs:attributeGroup name="address"> 3 <xs:attribute name="State" type="xs:string"/> 4 <xs:attribute name="city" type="xs:string" use="required"/> 5 </xs:attributeGroup> 6 <xs:attributeGroup name="homeAddress"> 7 <xs:attributeGroup ref="address"/> 8 <xs:attribute name="road" type="xs:string"/> 9 </xs:attributeGroup> 10 <xs:simpleType name="listInt"> 11 <xs:list itemType="xs:int" /> 12 </xs:simpleType> 13 <xs:element name="Student"> 14 <xs:complexType> 15 <xs:sequence> 16 <xs:element name="Name" type="xs:string"/> 17 </xs:sequence> 18 <xs:attributeGroup ref="homeAddress"/> 19 <xs:attribute name="list" type="listInt" use="required"/> 20 </xs:complexType> 21 </xs:element> 22</xs:schema> 23