Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

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

  1. On the Manage XSL Template screen, click the Mapping Rules tab.
  2. Enter the name of the new XSL template that you want to create in the Name field.
  3. Select the scope of the XSL Template. The default scope of the XSL template is Local.
  4. Click the Add  icon to add parameters for the new XSL template.
  5. Enter the name of the parameter you want to add, in the Parameter Name field.
  6. 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.
  7. Select the required Mapping Function. For example, select the mapping function, Math > Add (see Figure 515).

    Figure 515: Manage XSL Template: Mapping Rules

  8. The respective mapping function (add symbol for this example) is displayed in the Mapping template.

    Figure 516: Mapping Template: Mapping Function Symbol

  9. Use the parameters that you have added in the previous steps.Image Modified

    Info

    If you need to delete any row, select the respective row and click the Delete  icon.


  10. 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.

...