|
next
|
 Subject: XSD - multiple similar namespace import - validation fails Author: (Deleted User) Date: 27 Feb 2009 10:12 AM
|
Hi Joseph,
Xerces only allows one location for each schema namespace, following the advice found in the W3C spec ("multiple 'import'ing of the same schema document will not constitute a violation of clause 2 of Schema Properties Correct (§3.15.6), but applications are allowed, indeed encouraged, to avoid 'import'ing the same schema document more than once to forestall the necessity of establishing identity component by component. Given that the schemaLocation [attribute] is only a hint, it is open to applications to ignore all but the first 'import' for a given namespace, regardless of the ·actual value· of schemaLocation, but such a strategy risks missing useful information when new schemaLocations are offered.").
In order to have a more compliant schema file, please write a single schema for your namespace, for instance containing just three xsd:include statements reusing the already existing fragments.
Hope this helps,
Alberto
|
|
|
|