validation with relative pathes in schemaLocation
Posted: Fri Sep 12, 2003 1:22 pm
I have several xml-files which I validate with schemas that are local (on my harddisk).
When I add a relative path to the schema,
(eg. xsi:noNamespaceSchemaLocation="file:../schema/reportDefinition.xsd")
the validation fails with the error:
- [ reportDefinitions.xml] E cvc-elt.1: Cannot find the declaration of element '<rootelement>'.
It wolud be nice, when the working-directory where set to the directory of the file which is currently edited / validated.
BTW, the schema is found by oxygen: When I click 'open external schema', the right schema is opened.
Greetings
Holger
When I add a relative path to the schema,
(eg. xsi:noNamespaceSchemaLocation="file:../schema/reportDefinition.xsd")
the validation fails with the error:
- [ reportDefinitions.xml] E cvc-elt.1: Cannot find the declaration of element '<rootelement>'.
It wolud be nice, when the working-directory where set to the directory of the file which is currently edited / validated.
BTW, the schema is found by oxygen: When I click 'open external schema', the right schema is opened.
Greetings
Holger