Examples
Example #1: ATL - Book2Publish
This example shows a model to model (M2M) transformation from a book model to a publication model.
Reminder on transformation

Goal

Transform instances Book into instances of Publication.
ATL transformation code
Header

Helper
Helper to to build the author's list

Iterate on a collection

- acc is an accumulator which gets the initial value
- elem is an iterator which iterates on each element of the collection
- For each iteration expression-avec-elem-et-acc is
- evaluated
- and then put into acc
Helper to get the total of pages

Rule



