You can add a range of template elements, queries, and
conditions to build a template.
- Define a query for the top-level Packages and cast under
the model/root element:
- Select the root query from the Data
Source Schema view and click the
Cast
to type icon.
- In the Select Type window, select Package and
click OK.
Note: You cannot build queries of the Any Type type.
A cast must be defined before using a query. Schema elements that
can have more than one type, do not have a type assigned to them.
In such cases, you can define which type to use through the Cast
to type feature.
- Add a Container element from the Palette view
in the template.
- Drag the newly added model/root(Package) query
from the Data Source Schema view into the container
element.
- Select the container element.
- In the Properties view, select the General tab.
- In the name field, enter Root Packages.
- Drag a paragraph into the container element and add the model/root(Package)/name attribute.

- Add the static text heading diagrams for the list of diagrams:
- List the classes from each package:
- Save the document.