Use the XML Mapping editor to create an XML map between the input and output message, then generate an XSL style sheet from the XML map. The XSL style sheet will be used by the XSL Transformation primitive to map message types at runtime.
Tip: Wire the input and output terminals of the XSL Transformation primitive before mapping the message types, so that they are pre-filled in the Specify Message Types wizard that launches the XML Mapping editor.
Follow these steps to create a new XML map, and then generate an XSL style sheet from it.
Example:
The picture below shows the mapping between the source and target message for the TransformToDelayed primitive in the XML Mapping editor. The root property was set to /, so the complete message is displayed in the editor. The input message operation getQuote has a parameter named request that takes a business object that has an attribute whose name is symbol. The output message operation has a parameter symbol of type String. The mapping shown is between the symbol attribute of the input message to the symbol of the output message.
Since the root was set to /, all the message sections in the mapping editor must be explicitly mapped. Click on the top level element (smo) of the source and target, right-click, and select Match Mapping, as shown in the picture below:
For more information, see Rational® Application Developer topic Mapping between XML files