You must follow this process to work with RTF sub templates.
Using a sub template consists of the following steps (described in the following sections):
- Create the RTF file that contains the common components or processing instructions that you want to include in other templates.
- Create the calling or "main" layout and include the following two commands:
import - to import the sub template file to the main layout template.
call-template - to execute or render the sub template contents in the main layout.
- Test the template and sub template.
Tip:You can use the Publisher Desktop Template Viewer to test the main layout plus sub template before loading them to the catalog. To do so, you must alter the import template syntax to point to the location of the sub template in the local environment. See Test Subtemplates from the Desktop.
- Upload the main template to the report definition and create the Sub Template object in the catalog. See Upload a Subtemplate.