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
Aida Martinez is currently offline Aida MartinezFriend
Messages: 2
Registered: March 2012
Junior Member

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 lastName="Sailor">
<father firstName="Peter"/>
<mother firstName="Jackie"/>
<sons firstName="David"/>
<sons firstName="Dylan"/>
<daughters firstName="Kelly"/>

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

Current Time: Mon Mar 04 16:32:40 GMT 2024

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

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

Back to the top