An XSL template is a customized template. If you need to repeatedly perform a set of functions, you can create an XSL template defining those functions, and then later call that XSL template whenever required. For example, if you need to perform addition of two numbers at regular intervals, you can define the addition function in an XSL template. You can then call this XSL template whenever required.
The XSL Template option enables you to manage XSL templates. You can add, update or delete an XSL template using this option. Once you have added an XSL template, you can use it to map elements. You can also define the scope of an XSL template while creating and saving it. Scope of an XSL Template is the context within which it is defined. An XSL template can be defined in any of the following scope:
...
Once you have created a XSL template, you can use it to map elements. On the Manage XSL Template screen, by default the XSL Rules tab is selected. To create a XSL template using the Mapping Rules, click the Mapping Rules tab.
Steps to create an XSL template using the XSL the Mapping Rules
- On the Manage XSL Template screen, click the Mapping Rules tab.
- Enter the name of the new XSL template that you want to create in the Name field.
- Select the scope of the XSL Template. The default scope of the XSL template is Local.
- Click the Add icon to add parameters for the new XSL template.
- Enter the name of the parameter you want to add, in the Parameter Name field.
- Click the Add icon again to add the required parameters or press the Enter key to insert a new row. This will add a row immediately next to the row which is currently selected.
Select the required Mapping Function. For example, select the mapping function, Math > Add (see Figure 515).
Figure 515: Manage XSL Template: Mapping Rules
The respective mapping function (add symbol for this example) is displayed in the Mapping template.
Figure 516: Mapping Template: Mapping Function Symbol
Use the parameters that you have added in the previous steps.
Info If you need to delete any row, select the respective row and click the Delete icon.
- Click the Save button to save the Local XSL template. This displays the saved template under the Templates list on the XSL Template screen. The new XSL template is also displayed under Templates in the Parameters Panel.
...