By using the tag <list> you can also easily list the model elements.
Templatecontent
Output
<gendoc>¶ <list>¶ [for (p:NamedElement | self.ownedElement->filter(NamedElement))] ¶
[/for] ¶ </list>¶ </gendoc>¶