<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
	<xsd:attribute name="myAtt1"/>
	
	<xsd:attribute name="myAtt2" type="xsd:decimal"/>
	
	<xsd:attribute name="myAtt3">
		<xsd:simpleType>
			<xsd:restriction base="xsd:int">
				<xsd:minInclusive value="10"/>
				<xsd:maxInclusive value="20"/>
			</xsd:restriction>
		</xsd:simpleType>
	</xsd:attribute>
	
	<xsd:simpleType name="myType1">
		<xsd:restriction base="xsd:string">
			<xsd:maxLength value="5"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:attribute name="myAtt4" type="myType1"/>
	
	
	
	<xsd:element name="foo">
		<xsd:complexType>
			<xsd:attribute ref="myAtt1" use="optional"/>
			<xsd:attribute ref="myAtt2" use="required"/>
			<xsd:attribute ref="myAtt3" use="prohibited"/>
			<xsd:attribute ref="myAtt4"/>
			<xsd:attribute name="myAtt5" type="xsd:date" id="myDate"/>
			<xsd:attribute name="myAtt6">
				<xsd:simpleType>
					<xsd:restriction base="xsd:float">
						<xsd:totalDigits value="5"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:attribute>
		</xsd:complexType>
	</xsd:element>	

</xsd:schema>

