Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Xpand and Xtend(Code generation using two metamodels )
Xpand and Xtend [message #545228] Wed, 07 July 2010 09:26
Smitha  is currently offline Smitha Friend
Messages: 1
Registered: July 2010
Junior Member
I want to convert a XML document into a plain text file.
The XML document has an associated XSD. One of the XML elements has some source code in 'C' like language.

I use the XSD adapter to convert the XSD into a ecore metamodel. I am able to parse and generate output for the XML elements using a XPAND template.
However, when get the element which has the 'C' language code, I need to switch to another metamodel ( which defines the 'C' grammer) to generate output to the same file.

How can switch metamodels when generating the output ?
I would like to specify a new Xpand template to process the 'C' grammer.

Do I need to use Xtend ?
Previous Topic:[XPAND] xpanding for a Type T
Next Topic:Exception when calling workflow on XPand
Goto Forum:
  


Current Time: Fri Nov 28 13:44:53 GMT 2014

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

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