Return to main navigation Page
The Document Designer gives admins the option of defining their own custom XSL in order to implement advanced use cases. Using XSL Snippets allows admins access to all data that is stored in a Transaction’s Document XML for use in the Document Designer.
There are two types of XSL Snippets in the Document Designer that admins can add custom XSL code to:
Although it is possible to edit and create XSL, it is not recommended unless you have significant experience in using XSL. There is no guarantee that any XSL code will be compatible with future versions of CPQ Cloud.
The Global XSL Snippet can be used to create XSL variables that can be referenced in inline XSL Snippets throughout the Document Designer template.
To add XSL to the Global XSL Snippet:
In the Dynamic Tool Bar below the Document Properties pane, click the Global XSL button ().
The Global XSL Snippet editor window appears.
Inline XSL Snippets can be used to affect the output of the document by referencing XSL variables. XSL variables can be both declared and referenced within an XSL Snippet, or the inline XSL Snippet can reference XSL variables that are already present in the Global XSL Snippet. Inline XSL Snippets can be added to a Section, a Table cell, or a Header and Footer.
To add an XSL Snippet to the template:
Click and drag XSL Snippet into a Section, a Table cell, or a Header and Footer in the Template Flow.
The Script editor window appears.