Camel transformer using inconsistent sources

Solution Verified - Updated -


Using the following camel route:

<camel:process ref="serviceProcessor" />
    <camel:jaxb ... />
<camel:to uri="log:AFTER-MARSHAL" />
<camel:to uri="xslt:xslt/response.xsl?transformerFactory=saxonTransformerFactory" pattern="InOut" />

I see that my XSLT transformation are using different types:

XsltBuilder                    TRACE Using javax.xml.transform.dom.DOMSource@a353ed as source
XsltBuilder                    TRACE Using javax.xml.transform.stax.StAXSource@555538 as source
XsltBuilder                    TRACE Using as source
XsltBuilder                    TRACE Using javax.xml.transform.sax.SAXSource@141f9f6 as source

Why are the different types used? How does camel decides which type to use when converting from byte[]? Why sometimes StAXSource is used if by default allowStAX=false in camel-xslt component?


  • Fuse ESB Enterprise 7.1
  • Fuse Mediation Router 2.10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content