[xsd-users] Problem with target and default namespaces

Mcduffey, Joe jdmcduf at nsa.gov
Wed May 14 13:41:31 EDT 2008


I am having a problem with namespaces when I try to compile:
 when I have a parent schema that specifies a default and target namespace and then I include another schema that makes use of types contained in the parent schema errors occur. For example

---------------- Parent.xsd --------------------------------
<xs:schema targetNamespace="xyz" xmlns="xyz"...>
	<include schemaLocation=test.xsd/>
	<xs:complexType name ="test" >
		...
	</xs:complexType>

-------------- Child.xsd ----------------------------

<xs:element name="testName" type="testType">
...
</xs:element>

I then get an error 
	unable to resolve namespace=""



More information about the xsd-users mailing list