TransformXml 2025.10.9.21

Bundle

org.apache.nifi | nifi-standard-nar

Description

Applies the provided XSLT file to the FlowFile XML payload. A new FlowFile is created with transformed content and is routed to the ‘success’ relationship. If the XSL transform fails, the original FlowFile is routed to the ‘failure’ relationship

Tags

transform, xml, xslt

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
XSLT file nameProvides the name (including full path) of the XSLT file to apply to the FlowFile XML content. One of the ‘XSLT file name’ and ‘XSLT Lookup’ properties must be defined.
cache-sizeMaximum number of stylesheets to cache. Zero disables the cache.
cache-ttl-after-last-accessThe cache TTL (time-to-live) or how long to keep stylesheets in the cache after last access.
indent-outputWhether or not to indent the output.
secure-processingWhether or not to mitigate various XML-related attacks like XXE (XML External Entity) attacks.
xslt-controllerController lookup used to store XSLT definitions. One of the ‘XSLT file name’ and ‘XSLT Lookup’ properties must be defined. WARNING: note that the lookup controller service should not be used to store large XSLT files.
xslt-controller-keyKey used to retrieve the XSLT definition from the XSLT lookup controller. This property must be set when using the XSLT controller property.

Relationships

NameDescription
failureIf a FlowFile fails processing for any reason (for example, the FlowFile is not valid XML), it will be routed to this relationship
successThe FlowFile with transformed content will be routed to this relationship