Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Base for relative schemaLocations
Base for relative schemaLocations [message #45882] Wed, 26 May 2004 14:09 Go to next message
Christian Stein is currently offline Christian SteinFriend
Messages: 29
Registered: July 2009
Junior Member
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 #45938 is a reply to message #45882] Wed, 26 May 2004 14:15 Go to previous messageGo to next message
Eclipse UserFriend
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 #45966 is a reply to message #45938] Wed, 26 May 2004 14:29 Go to previous message
Christian Stein is currently offline Christian SteinFriend
Messages: 29
Registered: July 2009
Junior Member
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 14:15 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26285
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
Re: Base for relative schemaLocations [message #587678 is a reply to message #45938] Wed, 26 May 2004 14:29 Go to previous message
Christian Stein is currently offline Christian SteinFriend
Messages: 29
Registered: July 2009
Junior Member
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!
Previous Topic:Base for relative schemaLocations
Next Topic:Resource notifications
Goto Forum:
  


Current Time: Sun Dec 21 07:01:20 GMT 2014

Powered by FUDForum. Page generated in 0.02402 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software