<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
           xmlns:a="a" 
	   xmlns:b="b" 	  
	   targetNamespace="b">

	<xs:import namespace="a" schemaLocation="a.xsd"/>
	
	<!-- If you change a:A to b:A, the error is detected. -->
	<xs:simpleType name="B">
	  <xs:restriction base="a:A">
	    <xs:enumeration value="B"/>
	  </xs:restriction>
	</xs:simpleType>
	
	<!-- If you change xs:string to b:B you will get the wrong diagnostics. 
	     If you change xs:string to a:A you will get the correct diagnostics.
	-->
	<xs:element name="root" type="xs:string"/>
			
</xs:schema>
