Base for relative schemaLocations [message #45882] |
Wed, 26 May 2004 10:09  |
Eclipse User |
|
|
|
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 #45966 is a reply to message #45938] |
Wed, 26 May 2004 10:29  |
Eclipse User |
|
|
|
On Wed, 26 May 2004 10:15:04 -0400, Ed Merks <merks@ca.ibm.com> wrote:
> 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.
Merci!
|
|
|
Re: Base for relative schemaLocations [message #587667 is a reply to message #45882] |
Wed, 26 May 2004 10:15  |
Eclipse User |
|
|
|
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 #587678 is a reply to message #45938] |
Wed, 26 May 2004 10:29  |
Eclipse User |
|
|
|
On Wed, 26 May 2004 10:15:04 -0400, Ed Merks <merks@ca.ibm.com> wrote:
> 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.
Merci!
|
|
|
Powered by
FUDForum. Page generated in 0.03049 seconds