Community
Participate
Working Groups
Build Identifier: I20100608-0911 The generation of XMI schemas is inconsistence for the names and schemalocation inside the schemas. The bottom steps produce the following errors/inconsistencies 1. The name of the schema files for each package gets the suffix XMI but inside the schmea it references to a file without the suffix. 2. It generates an XMI.xsd schema file inside the project-model-folder, but references inside the schema to platform:/plugin/org.eclipse.emf.ecore/model/XMI.xsd Maybe additional problems I think many people will use the schemas outisde the model or eclipse framework. So I seems that problematical to use references wit a "platform"-URL An other problem are references between xmi schemas between diffrent model projects, every model generates the XMI schema instead use the xmi file from the depending schema. Reproducible: Always Steps to Reproduce: 1. Build an ecore model with package and a subpackage an classes where one referenced or subclass the class of the other package. 2. Set Generate Schema inside genmodel on true 3. Set ResourceType for the packages to XMI 4. Generate model code (wich includes schema generation)
XMI Schema generation was completely redesigned and is now invoked by exporting your model to an XML or XMI schema rather than as a side effect of generation; the older stuff was left in place but, as you've noticed, it doesn't work well at all. As a side note, an XMI schema is, in my opinion, a completely useless artifact. I know of no situation where it's actually been useful even in some minimal way.
We won't fix/update the older design because there's not enough information available to produce proper cross file references.