<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>

<!-- 
Test attributeGroup declaration: ref='foo (not a valid reference to an attributeGroup)'
-->

<xsd:complexType name="test">
	<xsd:attributeGroup ref="abc"/>
</xsd:complexType>

<xsd:attributeGroup name="abc" id="abc">
	<xsd:attributeGroup ref="foo"/>
    <xsd:attribute name="att" type="xsd:int" />
</xsd:attributeGroup>

<xsd:complexType name="foo">
	<xsd:sequence>
		<xsd:element name="ee"/>
	</xsd:sequence>
	<xsd:attributeGroup ref="g">
	</xsd:attributeGroup>
</xsd:complexType>

<xsd:attributeGroup name="g">
	<xsd:attribute name="foo" type="xsd:int"/>
	<xsd:attribute name="bar"/>
</xsd:attributeGroup>

</xsd:schema>
