Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XSDPackage nsuri, why not: http://www.w3.org/2001/XMLSchema
XSDPackage nsuri, why not: http://www.w3.org/2001/XMLSchema [message #434500] Thu, 30 July 2009 19:40 Go to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Ed,
Another question.

I have a xsd which refers to the XML Schema xsd (it has an element which is a schema). I expected/hoped that this would
resolve to a reference to the XSDPackage but it did not because the XSDPackage seems to use a different namespace then
the XML Schema namespace.
I noticed that the XMLNameSpacePackage on the other hand uses the w3.org nsuri.

Is there a specific reason why the XSDPackage has a different non-w3.org namespace uri?

Is there a way that I can let xsd's, which I read through a xsdresource, make use of the XSDPackage instead of creating
their own xsd schema instance?


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: XSDPackage nsuri, why not: http://www.w3.org/2001/XMLSchema [message #434563 is a reply to message #434500] Thu, 30 July 2009 19:49 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Martin,

Comments below.


Martin Taal wrote:
> Hi Ed,
> Another question.
>
> I have a xsd which refers to the XML Schema xsd (it has an element
> which is a schema). I expected/hoped that this would resolve to a
> reference to the XSDPackage but it did not because the XSDPackage
> seems to use a different namespace then the XML Schema namespace.
Yes and the XMLTypePackage also uses a different namespace (because it's
not really the complete model derived from the schema for schemas, but
rather is only the built-in types).
> I noticed that the XMLNameSpacePackage on the other hand uses the
> w3.org nsuri.
It really is the model derived from that schema.
>
> Is there a specific reason why the XSDPackage has a different
> non-w3.org namespace uri?
That was a long time ago. :-P

This allows one bind the schema for schemas directly...
>
> Is there a way that I can let xsd's, which I read through a
> xsdresource, make use of the XSDPackage instead of creating their own
> xsd schema instance?
No. I suspect that any model that refers directly to the schema for
schemas will have a hard time serializing and deserializing instances
unless there is a proper binding for the schema for schemas.
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:XSDEcoreBuilder --> using a different EcorePackage instance
Next Topic:[transaction] multi-threaded access to emf presentation model
Goto Forum:
  


Current Time: Fri Apr 19 03:26:56 GMT 2024

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

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

Back to the top