1<?xml version="1.0" encoding="ISO-8859-1" ?>
2<!-- 3.2.3 : 3.2
3    If ref is present, then all of <simpleType>, form and type must be absent
4    This one tests <simpleType>
5-->
6<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://foo" xmlns:foo="http://foo">
7	
8  <element name="foo">
9  	  <complexType>
10  	  	<attribute ref="foo:bar">
11  	  		<simpleType>
12  	  			<restriction base="string">
13  	  				<maxLength value="20"/>
14  	  			</restriction>
15  	  		</simpleType>
16  	  	</attribute>
17  	  </complexType>    
18  </element>  
19  
20  <attribute name="bar" type="string" />
21
22</schema>
23