[xsd-users] Re: Local disk schema location

Boris Kolpackov boris at codesynthesis.com
Fri Oct 17 12:31:38 EDT 2008


Hi George,

George Vassilakes <george at sbdev.net> writes:

> whats is the syntax for a schema location in an XSD file

Per the XML Schema spec it is a URI (absolute or relative).
However, for security reasons (no network access), the XSD
compiler only supports local filesystem paths.


> If I use "../.../file.xsd" it works fine. I also tried using 
> the windows style path but still no luck.

Relative (both Windows and POSIX styles, e.g., ../foo/bar.xsd
and ..\foo\bar.xsd) as well as absolute (e.g., c:\foo\bar.xsd)
paths work for me on Windows with XSD 3.2.0. Which version of
XSD are you using?

Also if you are planning to use absolute paths for inclusion
then you will most likely want to change header include paths
in the generated code. For that refer to the --include-regex
option.

Boris




More information about the xsd-users mailing list