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
Aida Martinez is currently offline Aida MartinezFriend
Messages: 2
Registered: March 2012
Junior Member
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 Nov 29 10:01:24 GMT 2014

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

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