Skip to main content



      Home
Home » Modeling » EMF » Use ECore to model XSD and IDL
Use ECore to model XSD and IDL [message #431176] Wed, 01 July 2009 11:54 Go to next message
Eclipse UserFriend
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 13:08 Go to previous message
Eclipse UserFriend
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: Thu Jul 03 13:43:53 EDT 2025

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

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

Back to the top