I've the same problems with relative schema paths as David NeSmith described.

My file structure is:
example.xml
xsd/ML.xsd
xsd/ML_primitive.xsd

in example.xml the xsi:schemaLocation attribut has the relative path xsd/ML.xsd.
In ML.xsd is a include tag which shows to ML_primitive.xsd without the path xsd. Xerces can't find this file and I get following errors:

[Warning] :0:0: File "file:///home/dave/tmp/ML_primitive.xsd" not found.
[Error] example.xml:5:74: Schema error: Element bool not found in the Schema.
[Error] example.xml:5:74: Schema error: Element int not found in the Schema.
[Error] example.xml:5:74: Schema error: Element real not found in the Schema.
[Error] example.xml:5:74: Schema error: Element string not found in the Schema.
[Error] example.xml:7:25: Element type "string" must be declared.
[Error] example.xml:7:25: Attribute "value" must be declared for element type "string".

Why does Xerces search for ML_primitive.xsd relative to the directory of the xml file and not relative to the directory of the xsd-file where the include tag is used?

Thanks,
Armin

Attachment: example.tar.gz
Description: Binary data

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

Reply via email to