Adding Custom XSL

At times, you may want to add some additional specialized XSL to a target element, or at the top or bottom of the mapping XSL. You can do this by adding custom XSL code. 

Steps to add custom XSL code for a Target Element

  1. Ensure that the source and target schemas are loaded and all their elements are listed under their respective nodes.
  2. Right-click the target element and select the Custom XSL Before option (see Figure 560).

    Figure 560: Select Custom XSL Before Option

  3. The Add Custom XSL Before screen is displayed for the target element. Enter the custom XSL code for the target element (see Figure 561).

    Figure 561: Enter Custom XSL Code

  4. Click Save to save the XSL code and close the screen. Alternately, click Clear to clear the XSL code, or Cancel to close the screen without saving the changes.

    Similarly, you can add custom XSL code after a target element, by selecting Custom XSL After option from the right menu (refer to Figure 560).

    Steps to add global custom XSL code

  1. Ensure that the source and target schemas are loaded and all their elements are listed under their respective nodes.
  2. Click the Actions menu and select Global Custom XSL Before option (see Figure 562).

    Figure 562: Select Global Custom XSL Before Option

  3. The Add Global Custom XSL Before screen is displayed. Enter the global custom XSL code (see Figure 563).

    Figure 563: Enter Global Custom XSL Code

  4. Click Save to save the XSL code and close the screen. Alternately, click Clear to clear the XSL code, or Cancel to close the screen without saving the changes.

    Similarly, you can add global custom XSL code after mapping XSL, by selecting Global Custom XSL After option from the Actions menu (refer to Select Global Custom XSL Before Option screen).

  5. Once you have entered the custom XSL code, it is saved in the Mapping XSL screen (see Figure 564).


Figure 564: Custom XSL Code in Mapping XSL