|
Re: Base for relative schemaLocations [message #45938 is a reply to message #45882] |
Wed, 26 May 2004 14:15 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Christian,
From within B.xsd, you should use ../ccc/C.xsd. (The answer will be the
same as if these were .html files with href="..." in them.) The track
location thing is there just to be able to keep track of line and column
numbers for the DOM as it is created.
Christian Stein wrote:
> Hi Ed and others,
>
> I couldn't figure out -- yes, schemaLocations should be absolute -- in
> the W3C specs which is the correct base URI when including/import.
>
> ./A.xsd
> ./bbb/B.xsd
> ./ccc/C.xsd
>
> Be A the root schema including "./bbb/B.xsd" and "./ccc/C.xsd".
>
> What is the correct import statement, if wants to see C?
>
> "../ccc/C.xsd" (assert cwd == ./bbb/)
>
> or
>
> "./ccc/C.xsd"? (assert cwd == .)
>
> (...)
>
> Is XSDResourceImpl.XSD_TRACK_LOCATION related to this topic?
>
> (...)
>
> Or is this bad-style again?
>
> Regards,
> Christian
|
|
|
|
Re: Base for relative schemaLocations [message #587667 is a reply to message #45882] |
Wed, 26 May 2004 14:15 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Christian,
From within B.xsd, you should use ../ccc/C.xsd. (The answer will be the
same as if these were .html files with href="..." in them.) The track
location thing is there just to be able to keep track of line and column
numbers for the DOM as it is created.
Christian Stein wrote:
> Hi Ed and others,
>
> I couldn't figure out -- yes, schemaLocations should be absolute -- in
> the W3C specs which is the correct base URI when including/import.
>
> ./A.xsd
> ./bbb/B.xsd
> ./ccc/C.xsd
>
> Be A the root schema including "./bbb/B.xsd" and "./ccc/C.xsd".
>
> What is the correct import statement, if wants to see C?
>
> "../ccc/C.xsd" (assert cwd == ./bbb/)
>
> or
>
> "./ccc/C.xsd"? (assert cwd == .)
>
> (...)
>
> Is XSDResourceImpl.XSD_TRACK_LOCATION related to this topic?
>
> (...)
>
> Or is this bad-style again?
>
> Regards,
> Christian
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03696 seconds