Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Multiple XSDs with identical targetNamespaces
Multiple XSDs with identical targetNamespaces [message #603005] Thu, 15 May 2008 08:28
Zsolt Török is currently offline Zsolt TörökFriend
Messages: 22
Registered: July 2009
Junior Member
I'm using openArchitectureWare's XSD adapter to gain access to a couple of
XSDs, which uses the EMF XSD plugin to transform the schemas into Ecore.
I'm working with a set of interrelated XSDs, which have the same
targetNamespace specified.
When importing these through XSDEcoreBuilder the getEPackage(...) method
uses the same key (the above mentioned targetNamespace) when storing the
created EPackages to a HashMap, therefore constantly overwriting the
previous EPackage.

I also experimented with stripping away the targetNamespaces from the
XSDs, which resulted in even stranger behaviour: the first EPackage
without targetNamespace got stored in the HashMap with a null key. I could
only get it to work when I modified the targetNamespaces to be unique, but
since the XSDs are part of a standard I can't change them just like that.

Could this be worth a bug report? If so, what would be the approximate
timeframe for fixing it? By looking at the code I'd say this fix is
non-trivial, because we need to find some other, unique key to put in the
above mentioned HashMap instead of the targetNamespace. Any ideas,
suggestions welcome!

Thanks,
Zsolt
Previous Topic:Can't get XSD graphical editor working...
Next Topic:Multiple XSDs with identical targetNamespaces
Goto Forum:
  


Current Time: Sat Dec 20 01:41:57 GMT 2014

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

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