Use the XSLT mediation primitive to transform messages.
The XSLT mediation primitive transforms messages. The starting point of a transformation is indicated by an XPath expression.
The XSLT mediation primitive has one input terminal and two output terminals. One output terminal is for successful output and one for failure output. The input terminal is wired to accept a message and the output terminals are wired to propagate a message. The input message triggers a transformation and if the transformation is successful then the successful output terminal propagates the modified message. If an exception occurs during the transformation then the fail terminal propagates the original message, together with any exception information.
You can use the XSLT mediation primitive to change the headers or the body of your messages. The XSLT mediation primitive gives you a simple mechanism for manipulating messages. You transform your messages using an XSLT (Extensible Stylesheet Transformations) 1.0 transformation.
The XSLT mediation primitive can be useful if you need to manipulate data, before or after the Database Lookup mediation primitive is invoked.
Property | Valid Values | Default |
---|---|---|
Mapping File | String | |
Root | String: An XPath expression representing the root of the transformation | /body |
Validate input | Boolean: true or false | false |
Consider the following when using the XSLT mediation primitive: