I have a schema which includes another schema. Xerces doesn't find the included schema, if the schema files und the xml file are in different directories. What can I do? I know I asked the same question a few days ago, but there was no answer. I really need a solution to the problem.
Thank you in advance Armin On Tuesday 17 July 2001 05:02, I wrote: > 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
example.tar.gz
Description: GNU Zip compressed data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
