problems defining namespaces

Hi,

I've been trying to validate the simple XML doc below
using the xerces 1.2 parser with the schema also
listed below.  I keep getting an error stating "type
not found http://www.w3.org/1999/XMLSchema:Request". 
Could someone please tell me if/how I'm namespacing
the document incorrectly?

XML sample
<?xml version="1.0" encoding="ISO-8859-1"?>
<Transaction xmlns = "http://www.test.org/namespaces"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" 
xsi:schemaLocation= "http://www.test.org/namespaces
TestTxn.xsd" ReferenceNumber="5000"
CreationDate="20000101">  
	<Request>
		<Customer>Jim Smith</Customer>	</Request>			
</Transaction>


Sample Schema:
<?xml version="1.0" encoding="ISO-8859-1"?>

<schema xmlns = "http://www.w3.org/1999/XMLSchema" 
targetNamespace = "http://www.test.org/namespaces"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xsi:schemaLocation= "http://www.w3.org/1999/XMLSchema 
http://www.w3.org/1999/XMLSchema.xsd">
   <element name = "Transaction">
	<complexType>
		<element name = "Request" type = "Request"/>
		<attribute name = "ReferenceNumber" type =
"lengthEighty" use="required"/>
		<attribute name = "CreationDate" type = "dateTime"
use="required"/>
	</complexType>
     </element> 
     <complexType name = "Request">
	<element name = "Customer" type = "lengthEighty"
minOccurs = "0" maxOccurs = "1"/>
     </complexType>
     <simpleType name = "dateTime" base = "string">
	<minLength value = "8"/>
	<maxLength value = "14"/>
     </simpleType>
     <simpleType name = "lengthEighty" base =
"string">
	<minLength value = "1"/>
	<maxLength value = "80"/>
    </simpleType>
</schema>



__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Received on Monday, 11 September 2000 13:51:17 UTC