I'm using Xerces 1.4.3 to do validation on instance documents
conforming to modular XML Schemas and have run into some
problems with the way Xerces includes Schemas into other
Schemas.

All of my schemas are kept together in a common directory,
and as such, according to every example I can find, I should
be able to reference them by only their file name from another
schema in the same directory. Example:

<xsd:include schemaLocation = "schedule.xsd"/>

Xerces is not able to find any of the included schemas, and
seems to be searching for them by default in the root directory
of my app server. If I reference them by their fully qualified URI,
then Xerces has no problem finding them, e.g.:

<xsd:include schemaLocation = "http://path.to/schemas/schedule.xsd"/>

I've been working fully with the JAXP API, and can only get
the first example to work if using DocumentBuilder parse()
function that specifies a systemId as the base to resolve URIs,eg:

builder.parse( fileStream, "http://path.to/schemas/"; );

Is this the only way to accomplish this, or have I missed something
obvious?

Thanks for your help!
David A. Riggs


--
David A. Riggs
Science Applications International Corporation - SAIC
 (304)284-9000x201                  [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to