Skip to main content



      Home
Home » Modeling » EMF » Export ECore to XSD
Export ECore to XSD [message #1855765] Wed, 02 November 2022 04:50 Go to next message
Eclipse UserFriend
I'd like to export an Ecore Model in Eclipse to a XML Schema Definition.
Using the default export mechanism "XML Schema to XMI" works just quite fine but ExtendedMetaData annotations are not considered (//org/eclipse/emf/ecore/util/ExtendedMetaData)!

How can I generate a XSD including ExtendedMetaData (like minInclusive for java.lang.Integer) using the XMI datatypes to get something like below?


<xs:simpleType>
      <xs:restriction base="xs:integer">
         <xs:minInclusive value="42"/>
      </xs:restriction>
</xs:simpleType>
Re: Export ECore to XSD [message #1855769 is a reply to message #1855765] Wed, 02 November 2022 08:03 Go to previous message
Eclipse UserFriend
The generated schemas are in general useless, e.g., XML Schema doesn't support multiple inheritance but Ecore does, XML Schema supports a limited set of data types but Ecore supports and unlimited set. I do not have the resource to invest in enhancing the exporter to be somewhat less useless in those limited cases where that's even feasible...
Previous Topic:Why is the Ecore iD attribute scoped to the resource?
Next Topic:[CDO] Reject change in conflict
Goto Forum:
  


Current Time: Mon Jun 23 22:11:30 EDT 2025

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

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

Back to the top