Debug Templates
If you don’t see the expected results in the template preview window, you can use Template Viewer to enable trace settings and view the debug messages to solve the problem.
You can also save and view the intermediate XSL file generated after the sample data and template are merged in the XSL-FO processor. If you already use XSL, you’ll quickly learn the debugging features in Template Viewer.
To preview template with Template Viewer and view log messages:
-
Open Template Viewer:
From the Windows desktop, click Start, then Programs, then Oracle BI Publisher Desktop, then Template Viewer.
-
Click Browse to locate the working directory that contains the sample data file and template file. The data file and template file must reside in the same folder.
-
In the Files tab, select the appropriate option. For example, if you’re testing a .xsl template, select Excel Templates. The Data and Template regions display the data files and template files present in the directory
-
Click the appropriate data and template files to select them.
-
Select the log (debug) level.
-
If you want to test a sub-template, browse and specify the sub-template in the Style Template File field.
-
If required, set the report parameters in the Setting (Default) tab.
-
From the Output Format list, select the output format. For example, Excel.
-
Click Start Processing.
The Template Viewer merges the selected data with the selected master template and sub-template and opens the appropriate viewer. View the log messages in the message box.
-
To view the generated XSL:
-
Select the data and template files and choose Excel output.
-
Select Tools, then Generate XSL file from, then Excel Template.
-
At the prompt, save the generated XSL file.
-
Navigate to the saved location and open the XSL file in an appropriate viewer.
-
Generate Reports in PDF/A, PDF/X, and PDF/UA Formats
You can generate reports in PDF/A, PDF/X, and PDF/UA formats in Template Viewer.
- Set the font directory to embed fonts in the document.
- Configure the PDF/A output by setting the properties. Add the key and value pairs for PDF/A output.
- Add the optional property settings for PDF/A and PDF/X outputs.