Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XML tranformations
XML tranformations [message #429099] Wed, 08 April 2009 13:52 Go to next message
Mircea Luchian is currently offline Mircea LuchianFriend
Messages: 89
Registered: July 2009
Member
Hello,

Does EMF support XML transformations? I would like to know if with an
input of model "A" I can, via a transformation, produce an output of
model "B". In addition, if this is possible, how would the
transformation be defined and fed into the EMF framework?

Thanks,

Mircea
Re: XML tranformations [message #429103 is a reply to message #429099] Wed, 08 April 2009 15:14 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Mircea,

Certainly you could use the generated APIs for A and B to read an A
instance and build a B instance. Like the XSDEcoreBuilder transforms a
*.xsd to a *.ecore. Things like ATL and QVT support transformation via
specialized transformation languages.


M. Luchian wrote:
> Hello,
>
> Does EMF support XML transformations? I would like to know if with an
> input of model "A" I can, via a transformation, produce an output of
> model "B". In addition, if this is possible, how would the
> transformation be defined and fed into the EMF framework?
>
> Thanks,
>
> Mircea


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: XML tranformations [message #429108 is a reply to message #429103] Wed, 08 April 2009 18:17 Go to previous messageGo to next message
Mircea Luchian is currently offline Mircea LuchianFriend
Messages: 89
Registered: July 2009
Member
Thanks Ed,

Instance by instance transformation is fine, except the XML's
corresponding EMF model has 40 classes; the transformation is already
defined in the XSLT language by a third party. I wish to use this XSLT
and perform automatically in my application. The more I look into it, I
can be totally disconnected from EMF and use the JAXP API to perform my
transformations.

Mircea

Ed Merks wrote:
> Mircea,
>
> Certainly you could use the generated APIs for A and B to read an A
> instance and build a B instance. Like the XSDEcoreBuilder transforms
> a *.xsd to a *.ecore. Things like ATL and QVT support transformation
> via specialized transformation languages.
>
>
> M. Luchian wrote:
>> Hello,
>>
>> Does EMF support XML transformations? I would like to know if with an
>> input of model "A" I can, via a transformation, produce an output of
>> model "B". In addition, if this is possible, how would the
>> transformation be defined and fed into the EMF framework?
>>
>> Thanks,
>>
>> Mircea
Re: XML tranformations [message #429109 is a reply to message #429108] Wed, 08 April 2009 18:46 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Mircea,

XSLT is useful for syntactic XML transformation. It's not so useful for
dealing with typed non-containment references which are common in
models. For example, I think it would be virtually impossible to do an
XSD to Ecore transformation using XSLT because the semantic resolution
of QNames via imports and includes is vital for doing this mapping in a
meaningful way...


M. Luchian wrote:
> Thanks Ed,
>
> Instance by instance transformation is fine, except the XML's
> corresponding EMF model has 40 classes; the transformation is already
> defined in the XSLT language by a third party. I wish to use this XSLT
> and perform automatically in my application. The more I look into it,
> I can be totally disconnected from EMF and use the JAXP API to perform
> my transformations.
>
> Mircea
>
> Ed Merks wrote:
>> Mircea,
>>
>> Certainly you could use the generated APIs for A and B to read an A
>> instance and build a B instance. Like the XSDEcoreBuilder transforms
>> a *.xsd to a *.ecore. Things like ATL and QVT support transformation
>> via specialized transformation languages.
>>
>>
>> M. Luchian wrote:
>>> Hello,
>>>
>>> Does EMF support XML transformations? I would like to know if with
>>> an input of model "A" I can, via a transformation, produce an output
>>> of model "B". In addition, if this is possible, how would the
>>> transformation be defined and fed into the EMF framework?
>>>
>>> Thanks,
>>>
>>> Mircea


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Threading issue in ResourceImpl::load(InputStream, Map)
Next Topic:Overriding InitializeCopyCommand to increment ID
Goto Forum:
  


Current Time: Wed Apr 24 20:43:11 GMT 2024

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

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

Back to the top