Page 1 of 1

xsi:schemaLocation trouble

Posted: Tue Dec 14, 2004 1:32 pm
by mashu
The place of a schema is specified to be xsi:schemaLocation. Description which goes back a two or more layer directory was carried out. It seems that it becomes impossible to discover well the schema which is import(ing) when it does so.

ex. problem occurs.
xsi:schemaLocation="http://www.ggf.org/namespaces/ws-agreement ../../xsd/ws-agreement.xsd http://schemas.xmlsoap.org/ws/2003/03/addressing ../../xsd/wsa.xsd"

ex. problem does not occurs.
xsi:schemaLocation="http://www.ggf.org/namespaces/ws-agreement ../xsd/ws-agreement.xsd http://schemas.xmlsoap.org/ws/2003/03/addressing ../xsd/wsa.xsd"

Small test works

Posted: Tue Dec 14, 2004 3:30 pm
by tavy
Hello,

We made a small test starting from your sample code and it seems to work fine.
Please try and see if the schemas refered to in the xsi:schemaLocation are actually where the path points to. In the xml file you constructed you can set the caret position on one schema path like
../../xsd/ws-agreement.xsd
, right click and select "Open file at cursor" from the pop-up menu. If this does not work, maybe the xsd file is somewhere else.

If you still have problems, please contact us at "support@oxygenxml.com" and give some more details like:
--sample test files.
--the directory structure you are working in
--what you want to accomplish

Regards, Tavy.