Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Transform several elements into one element
[ATL] Transform several elements into one element [message #830230] Tue, 27 March 2012 11:05
Eclipse UserFriend
Hi,

I want to transform a serie of persons, for example:
<Male fullName="Jim March"/>
<Male fullName="Brandon March"/>
<Male fullName="Peter Sailor"/>
<Male fullName="David Sailor"/>
<Male fullName="Dylan Sailor"/>
<Female fullName="Cindy March"/>
<Female fullName="Brenda March"/>
<Female fullName="Jackie Sailor"/>
<Female fullName="Kelly Sailor"/>
into Families with this structure:
<Family lastName="March">
<father firstName="Jim"/>
<mother firstName="Cindy"/>
<sons firstName="Brandon"/>
<daughters firstName="Brenda"/>
</Family>
<Family lastName="Sailor">
<father firstName="Peter"/>
<mother firstName="Jackie"/>
<sons firstName="David"/>
<sons firstName="Dylan"/>
<daughters firstName="Kelly"/>
</Family>

I am new in ATL transformations. How do I accomplish this?
Thanks,
Previous Topic:[ATL] The generate atl plugin works differently from atl configuration
Next Topic:[Solved][ATL] string concat operation OclUndefined ???
Goto Forum:
  


Current Time: Sat Feb 15 01:54:21 GMT 2025

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

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

Back to the top