The FastXSLT Mediator is similar to the XSLT mediator, but it uses the Streaming XPath Parser and applies the XSLT transformation to the message stream instead of to the XML message payload. The result is a faster transformation, but you cannot specify the source, properties, features, or resources as you can with the XSLT mediator. Therefore, the FastXSLT mediator is intended to be used to gain performance in cases where the original message remains unmodified. Any pre-processing performed on the message payload will not be visible to the FastXSLT mediator, because the transformation logic is applied on the original message stream instead of the message payload. In cases where the message payload needs to be pre-processed, use the XSLT mediator instead of the FastXSLT mediator.
...
| Note | |||||||
|---|---|---|---|---|---|---|---|
To enable the FastXSLT mediator, your XSLT script must include the following parameter in the XSL output. omit-xml-declaration="yes"For example:
If you do not include this parameter in your XSLT when using the FastXSLT mediator, you will get the following error.
|
...
Follow the steps below to specify the stylesheet as a Registry entry in the above API.
...