XSD to Ecore [message #514113] |
Fri, 12 February 2010 13:18 |
Oliver Normann Messages: 8 Registered: January 2010 Location: Berlin |
Junior Member |
|
|
Hello,
i would like to reuse the "documentation" element from the XMLSchema namespace.
I'm creating my Ecore model using the XSD first approach.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore".../>
<xsd:import namespace="http://www.w3.org/2001/XMLSchema" schemaLocation="http://www.w3.org/2001/XMLSchema.xsd" />
<xsd:complexType name="Documentation">
<xsd:sequence>
<xsd:element ref="xsd:documentation" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
...
</xsd:schema>
When i try to reload this XSD into the Generator model i'm not able to reference a Generator model for the XMLSchema definition. However a Generator model for the XMLNamespace definition exists in the "org.eclipse.emf.ecore" plugin which i can reference. This one is imported from XMLSchema definition and used by the "documentation" element.
Is there also a Generator model for the XMLSchema namespace which i could reference?
Greetings
Oliver
[Updated on: Fri, 12 February 2010 14:38] Report message to a moderator
|
|
|
|
Re: XSD to Ecore [message #515202 is a reply to message #514138] |
Thu, 18 February 2010 07:30 |
Oliver Normann Messages: 8 Registered: January 2010 Location: Berlin |
Junior Member |
|
|
Hi Ed,
Thanks for your fast reply. In the meantime i threw away the idea of importing XMLSchema namespace into my schema for just using a little part of it.
Indeed the generated Ecore model of XMLSchema is very large and i would'nt want to live with this. Furthermore it isn't a dedicated part of my domain.
So i've defined my own documentation type.
Thank you for clearance.
Greetings from Berlin
Oliver
[Updated on: Thu, 18 February 2010 07:34] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03630 seconds