|
Re: Use ECore to model XSD and IDL [message #431179 is a reply to message #431176] |
Wed, 01 July 2009 17:08 |
Ed Merks Messages: 33137 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
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03590 seconds