Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsBase for relative schemaLocations
https://www.eclipse.org/forums/index.php/mv/msg/14442/45882/#msg_45882
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]]>Christian Stein2004-05-26T14:09:31-00:00Re: Base for relative schemaLocations
https://www.eclipse.org/forums/index.php/mv/msg/14442/45938/#msg_45938
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]]>2004-05-26T14:15:04-00:00Re: Base for relative schemaLocations
https://www.eclipse.org/forums/index.php/mv/msg/14442/587667/#msg_587667
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 Merks2004-05-26T14:15:04-00:00Re: Base for relative schemaLocations
https://www.eclipse.org/forums/index.php/mv/msg/14442/45966/#msg_45966
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!]]>Christian Stein2004-05-26T14:29:02-00:00Re: Base for relative schemaLocations
https://www.eclipse.org/forums/index.php/mv/msg/14442/587678/#msg_587678
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.