3. Enterprise Integration Patterns

transform

The transform feature applies an XSLT transformation to the content in the body of a message. After the transformation the body content is replaced with the result of the transformation.



Can be used in:

serviceProxy, api, stompProxy, swaggerProxy, if, registration, wsStompReassembler, interceptor, bean, internalProxy, transport and soapProxy

Syntax

The value of the xslt attribute references an XSLT stylesheet.

<transform xslt="string" />

Sample

<serviceProxy >
  <request>
    <transform xslt="sap2opentrans.xslt" />
  </request>
  <target host="opentrans.server.de" />
</serviceProxy>
Transformation applied to request
<serviceProxy >
  <response>
	<transform xslt="classpath:a2b.xslt" />
  </response>
  <target host="a.server.de" />
</serviceProxy>
Transformation applied to response

Attributes

NameRequiredDefaultDescriptionExample
xslt false - Location of the XSLT stylesheet that will be applied to request and response. strip.xslt