Validate fails with local file schemaLocation imports
Posted: Sat Aug 27, 2005 8:13 pm
Hi all,
I'm working with a set of xsd and xml files that are checked into source control. I work from multiple machines, where the path to the files differs. The problem is that "Validate Document" fails if I specify relative paths in schemaLocation imports. Note that I'm using Oxygen 6.1 under Mac OS X 10.4.2 (Tiger).
I've posted an example for download here:
http://homepage.mac.com/WebObjects/File ... estxml.zip
If you try to perform a "Validate Document" operation on test.xml, you get an error because foo.xsd cannot include bar.xsd.
If I change foo.xsd to have an absolute path to bar.xsd, it works. But what I want is to specify a relative path so that I can move the files around without having to edit the import path.
Thanks in advance for any suggestions.
I'm working with a set of xsd and xml files that are checked into source control. I work from multiple machines, where the path to the files differs. The problem is that "Validate Document" fails if I specify relative paths in schemaLocation imports. Note that I'm using Oxygen 6.1 under Mac OS X 10.4.2 (Tiger).
I've posted an example for download here:
http://homepage.mac.com/WebObjects/File ... estxml.zip
If you try to perform a "Validate Document" operation on test.xml, you get an error because foo.xsd cannot include bar.xsd.
If I change foo.xsd to have an absolute path to bar.xsd, it works. But what I want is to specify a relative path so that I can move the files around without having to edit the import path.
Thanks in advance for any suggestions.