Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » XSD adapter - how to process 2 meta models
icon5.gif  XSD adapter - how to process 2 meta models [message #507688] Thu, 14 January 2010 11:58 Go to next message
Marco  is currently offline Marco Friend
Messages: 216
Registered: August 2009
Senior Member
Hi,

XSD adapter worked fine until now. I could even add another ecore model with <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" >.

Now I need to process xml files with 2 different XSDs. I mean of course that each xml file has just one XSD. But since most of the processing is the same I want to use just one template for both XSDs.

How can I specify 2 meta models in <component class="org.eclipse.xpand2.Generator"> <metaModel idRef="xsdMetaModel1" /> ?

As long as I specify just 1 MM for the generator I get error messages caused by types of the other XSD used in the template or the extensions.

Please give me a hint how I can make the types of 2 XSDs known to the generator.

br
Marco
Re: XSD adapter - how to process 2 meta models [message #507728 is a reply to message #507688] Thu, 14 January 2010 13:47 Go to previous message
Marco  is currently offline Marco Friend
Messages: 216
Registered: August 2009
Senior Member
Hi,

I found out that it is just too simple to believe. I just had to put 2 lines <metaModel idRef= into the generator block.

br
m
Previous Topic:Standalone code generation with Xpand, Xtend, MWE without Eclipse
Next Topic:[Acceleo] Improvement suggestion for properties
Goto Forum:
  


Current Time: Wed Mar 03 06:42:06 GMT 2021

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

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

Back to the top