<?xml version="1.0" encoding="UTF-8" ?>
<!--
highlight of this test:
	- use of elementFormDefault="unqualified"
	- unusual minOccurs/maxOccurs (3 and 7 respectively)
	- complexType with simpleContent, and restriction.
	- simpleType within restriction.
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
		targetNamespace="http://foo.com"
		xmlns="http://foo.com"
		elementFormDefault="unqualified">
	
	<xsd:element name="root">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element maxOccurs="7" minOccurs="3" name="child">
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:restriction base="xsd:string">
								<xsd:minLength value="3" />
								<xsd:maxLength value="10" />
								
								<xsd:attribute name="attr" use="optional">
									<xsd:simpleType>
										<xsd:restriction>
											<xsd:simpleType>
												<xsd:restriction base="xsd:string">
													<xsd:minLength value="3" />
												</xsd:restriction>
											</xsd:simpleType>
											<xsd:maxLength value="10" />
											<xsd:minLength value="5" />
										</xsd:restriction>
									</xsd:simpleType>
								</xsd:attribute>
							</xsd:restriction>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>
