ATL: output xsd [message #82709] |
Thu, 29 May 2008 19:15 |
Eclipse User |
|
|
|
Originally posted by: min.kong.morganstanley.com
Hi,
Two questions:
1) Is XMI the only output model format supported by ATL rule (NOT query)
model-to-model transform?
2) We have a model-to-model transform goal, where the output model target
is an org.eclipse.xsd instance.
The input model conforms to some input.ecore, and the output model
conforms to an XSD.ecore. Both input and output metamodel are defined in
Ecore.
The output model can ultimately be serialized into an .xsd text file. But
our goal is, not only to get an xsd text file, but to get an *in-memory*
org.eclipse.xsd instance, that conforms to the XSD.ecore.
After experimeting with ATL, it seems that we have only one alternative
with ATL:
- get an out.xmi that conforms to XSD.ecore and "transform" the out.xmi
into an out.xsd text file (with ATL query or another program, which
basically does some string/text processing), and then load that out.xsd
into memory with some org.eclipse.emf.ecore.* and org.eclipse.xsd.*
packages
Is there a more straight-forward way with which we can use ATL to obtain
an in-memory org.eclipse.xsd instance that conforms to the XSD.ecore (the
output metamodel)?
3) Are there other m2m alternatives you'd suggest for our scenario?
Thanks,
Min
|
|
|
Powered by
FUDForum. Page generated in 0.03391 seconds