Skip to main content



      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 05:26
Eclipse UserFriend
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: Thu Jul 03 04:04:15 EDT 2025

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

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

Back to the top