Subject:Importing XSD that are interdependant Author:mallee shwari Date:19 Jul 2005 02:40 AM
I am a newbie to XSD import concepts. I have two XSDs as listed out here. I would like to import Address.xsd in Mainschema.xsd where Address.xsd is in turn importing Mainschema.xsd. They are interdependant.
Subject:Importing XSD that are interdependant Author:Kasimier Buchcik Date:23 Jul 2005 07:32 PM
Circular imports and includes are explicitely allowed by the spec.
So if your scenario fails, then the schema processor is buggy.
Which validator did you use? Have you tried one of the custom
validation engines? I guess Xerces should work fine with it.
Actually, as per spec, the processor should only take care of
component identity, regardless where the component is stored; so
even if they occur in different files, and have the same component
name + targetNamespace, but are of equal structure, the processor
should not report any error. But I learned that such a level of
component identity checks is rarely implemented - in fact I don't know
which processor is able to do so.
I recommend using the W3X XML Schema mailing list for
schema related questions: