Script language

The content of a gendoc tag corresponds to a script written in Acceleo language.

Acceleo syntax to display names of all packages

Example: display names of all packages

[for (p:Package | Package.allInstances())]
 [p.name/]
[/for]

The script is is written inside a text box in the slide. When the the scrip is executed, the textboxes are considered ordered by the position of its top-left position. Below there is a example of how to display names of all packages, one in each slide.

Template content

Generation output

<context model='D:/…/myModel.uml'/>
<gendoc>
[for (p:Package | Package.allInstances())]

  •   [p.name/]
[/for]
</gendoc>



  •   Package 1
...
  •   Package n