|
|
Re: XML tranformations [message #429108 is a reply to message #429103] |
Wed, 08 April 2009 18:17 |
Mircea Luchian 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 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02821 seconds