JVM since0.4.0 Native since0.4.0

Transforms XML payload using an XSLT template.

What’s inside

Please refer to the above link for usage and configuration details.

Maven coordinates

Or add the coordinates to your existing project:


Check the User guide for more information about writing Camel Quarkus applications.

Additional Camel Quarkus configuration

To optimize XSLT processing, the extension needs to know the locations of the XSLT templates at build time. The XSLT source URIs have to be passed via the quarkus.camel.xslt.sources property. Multiple URIs can be separated by comma.

quarkus.camel.xslt.sources = transform.xsl, classpath:path/to/my/file.xsl

Scheme-less URIs are interpreted as classpath: URIs.

Only classpath: URIs are supported on Quarkus native mode. file:, http: and other kinds of URIs can be used on JVM mode only.

<xsl:include> and <xsl:messaging> XSLT elements are also supported in JVM mode only right now.

If aggregate DSL is used, XsltSaxonAggregationStrategy has to be used such as

   .aggregate(new XsltSaxonAggregationStrategy("xslt/aggregate.xsl"))
   .log("after aggregate body: ${body}")

Also, it’s only supported on JVM mode.


TransformerFactory features can be configured using following property:


Extension functions support

Xalan’s extension functions do work properly only when:

  1. Secure-processing is disabled

  2. Functions are defined in a separate jar

  3. Functions are augmented during native build phase. For example, they can be registered for reflection:

@RegisterForReflection(targets = { my.Functions.class })
public class FunctionsConfiguration {

The content of the XSLT source URIs is parsed and compiled into Java classes at build time. These Java classes are the only source of XSLT information at runtime. The XSLT source files may not be included in the application archive at all.

Configuration property Type Default


A comma separated list of templates to compile.



The package name for the generated classes.




TransformerFactory features.


Configuration property fixed at build time. All other configuration properties are overridable at runtime.