Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Generating EMF from advanced XSDs
Generating EMF from advanced XSDs [message #622368] Mon, 22 March 2010 21:28 Go to next message
Igor Jacy Lino Campista is currently offline Igor Jacy Lino CampistaFriend
Messages: 34
Registered: July 2009
Member
Hello EMF experts,

A challenging one.

I have spent quite a lot of time trying to generate a high quality ECORE file out of the technical documentation DITA schemas (XSDs). XSD -> ECore


The DITA XSD set comes in two flavors: one with relative path dependencies, and the other simplified by using Apache Catalog Resolver (1st time I heard of it).


A zip file containing the XSD defintions is here:

http://www.oasis-open.org/committees/download.php/36335/xsd1 .2-20100209.zip


Some questions arises:

How can I make the apache catalog based XSDs be resolved by the Ecore generator ?

What best and simple strategy can I use to generate a good ecore file from the XSDs when there are too many dependencies? (Trying to do XSD -> Ecore from the set of XSDs that have relative dependencies is not working)



For the set of XSDs using apache catalog URLs, here is a snippet from the file technicalContent\xsd\topic.xsd

<xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclMod.xsd:1.2 "/>

The last question: Is there a way to generate the XSD mapping to Ecore from such an XSD structure?


Thanks in advance,
Igor
Re: Generating EMF from advanced XSDs [message #622369 is a reply to message #622368] Mon, 22 March 2010 21:52 Go to previous messageGo to next message
Igor Jacy Lino Campista is currently offline Igor Jacy Lino CampistaFriend
Messages: 34
Registered: July 2009
Member
Forgot to mention, that I want to be able to work with instances of the model described by those XSDs. Also those XSD may be derived or specialized.

I was thinking EMF can help me there. I'm not sure at what level of abstraction though. Would it make better sense to be at the level of XSD meta-model instance and not the XSD meta-model model instance?

There is a nice article about apache catalog, and the reason those URN namespaces exists for simplifying XSDs.

http://xml.apache.org/commons/components/resolver/resolver-a rticle.html


Thanks,
IGor
Re: Generating EMF from advanced XSDs [message #622376 is a reply to message #622368] Tue, 23 March 2010 14:08 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Igor,

Comments below.

Igor Jacy Lino Campista wrote:
> Hello EMF experts,
>
> A challenging one.
>
> I have spent quite a lot of time trying to generate a high quality
> ECORE file out of the technical documentation DITA schemas
> (XSDs). XSD -> ECore
>
>
> The DITA XSD set comes in two flavors: one with relative path
> dependencies, and the other simplified by using Apache Catalog
> Resolver (1st time I heard of it).
>
>
> A zip file containing the XSD defintions is here:
>
> http://www.oasis-open.org/committees/download.php/36335/xsd1 .2-20100209.zip
>
>
>
> Some questions arises:
>
> How can I make the apache catalog based XSDs be resolved by the Ecore
> generator ?
>
> What best and simple strategy can I use to generate a good ecore file
> from the XSDs when there are too many dependencies? (Trying to do
> XSD -> Ecore from the set of XSDs that have relative dependencies is
> not working)
>
>
>
> For the set of XSDs using apache catalog URLs, here is a snippet from
> the file technicalContent\xsd\topic.xsd
>
> <xs:include
> schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclMod.xsd:1.2 "/>
>
> The last question: Is there a way to generate the XSD mapping to
> Ecore from such an XSD structure?
Why aren't you using the schemas with relative references? Those should
just work.
>
>
> Thanks in advance,
> Igor
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EMF Compare and ecore models
Next Topic:SetCommand working strange
Goto Forum:
  


Current Time: Thu Sep 26 01:35:50 GMT 2024

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

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

Back to the top