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 directly in the sheet cells. When the the scrip is executed, rows and cells will be added or removed. Below there is a exampl of how to display names of all packages, one per row.
A | B | |
---|---|---|
1 |
<context model='D:/…/myModel.uml'/> |
|
2 | <gendoc> [for (p:Package | Package.allInstances())] | |
3 |
[p.name/] |
|
4 |
[/for] </gendoc> |