Apply XSLT activity

You can use the Apply XSLT activity to transform XML data, stored in one XML variable, to XML data, stored in another XML variable, using the specified XSLT stylesheet.

About this task

The Apply XSLT activity transforms XML data, stored in one XML variable, to XML data, stored in another XML variable, using the specified XSLT stylesheet. The XSLT stylesheet is created outside of Studio.

For example, if you have a XSLT stylesheet that converts XML data, valid to one XML Schema, to XML data, valid to a second XML Schema, you can create an Apply XSLT activity that calls this XSLT stylesheet to do this conversion in your orchestration during run time.

To create an Apply XSLT activity:

Procedure

  1. Upload the XSLT stylesheet into the project.
  2. Upload the XML Schemas or DTD files that define the input and output XML variables.
  3. Create the following two XML variables:
    • a variable to hold the input XML data based on a XML Schema or DTD.
    • a variable to hold the output XML data based on a different XML Schema or DTD.
  4. Add the Apply XSLT activity to your orchestration:
    1. Create or open an orchestration. A graphical representation of the orchestration is displayed.
    2. Select the Activities tab and expand the Transform folder.
    3. Drag the Apply XSLT activity onto the orchestration
  5. Configure the Apply XSLT activity:
    1. In the Pick Stylesheet task, for the Stylesheet field click Browse. The Project Explorer is displayed.
    2. Select the appropriate stylesheet and click OK. The stylesheet is displayed.
    3. In the Checklist, select Set Input & Output.
    4. In the Input pane, select Browse. The Select Variable pane is displayed.
    5. Select a variable and click OK.
    6. In the Output pane, select Browse. The Select Variable pane is displayed.
    7. Select a variable and click OK.



Feedback | Notices


Timestamp icon Last updated: Tuesday, 27 September 2016


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.doc/Custom_XSLT_Activity.html