The XsltComponent will perform an XSLT transformation of an inbound NormalizedMessage and generate an output message as a NormalizedMessage.
If the component is given an InOut message exchange, then the 'out' message is used. Otherwise if an InOnly is used then the component will create a new InOnly message exchange for the result of the transformation.
The transformation can be configured using any JAXP Source or using a Spring Resource to the XSL file.
Example
There is an example which demonstates
- sending a mesage, via the Client API to a JMS topic
- a component consuming the JMS topic, pipelining that to the XsltComponent to transform the message then sending it out on a new topic
- a component subscribing to the transformed message topic and pipelining it to the receiver (used for the test case)
- a component subscribing to the transformed message topic and pipelining it to a trace component to demonstrate the pipeline working