Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Use ECore to model XSD and IDL
Use ECore to model XSD and IDL [message #431176] Wed, 01 July 2009 15:54 Go to next message
Kristian Sons is currently offline Kristian SonsFriend
Messages: 27
Registered: July 2009
Junior Member
Hello,

I'd like to use Ecore to model a DOM with specialized DOM access. The
result should be a XSD to validate content and an IDL file to define
specialized DOM access.

So for the XSD file I can use the existing ECore to XSD transformation.
To genrate the IDL files I could use one of the M2T tools (i.e. JET).

The only disadvantage I found right now is that I can't model
attributeGroups or global elements and attributes.

- Are there any other stumbling blocks to consider?
- Can I customize the ECore to XSD transformation? Where to start?


Thanks!
Kristian
Re: Use ECore to model XSD and IDL [message #431179 is a reply to message #431176] Wed, 01 July 2009 17:08 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30687
Registered: July 2009
Senior Member
Kristian,

Comments below.

Kristian Sons wrote:
> Hello,
>
> I'd like to use Ecore to model a DOM with specialized DOM access. The
> result should be a XSD to validate content and an IDL file to define
> specialized DOM access.
>
> So for the XSD file I can use the existing ECore to XSD
> transformation. To genrate the IDL files I could use one of the M2T
> tools (i.e. JET).
>
> The only disadvantage I found right now is that I can't model
> attributeGroups or global elements and attributes.
You can't more model groups either, but both that an attribute groups
are really more like macros. More importantly, you can't model choice,
or other more complex types of particle structures. Global elements and
attributes can be modeled as features of the document root. In general
XSD -> Ecore -> XSD is losy so there will definitely be things you can't
represent.
>
> - Are there any other stumbling blocks to consider?
> - Can I customize the ECore to XSD transformation?
I suppose.
> Where to start?
XSDEcoreBuilder does all the work.
>
>
> Thanks!
> Kristian
Previous Topic:Model loading - Casting
Next Topic:ECore to XSD roundtripping question regarding keys
Goto Forum:
  


Current Time: Tue Dec 10 10:10:32 GMT 2019

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

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

Back to the top