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
xml, xslt, transform
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.
Display Name | API Name | Default Value | Allowable Values | Description |
---|---|---|---|---|
XSLT file name | XSLT file name | Provides 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. This property requires exactly one file to be provided.. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | ||
XSLT Lookup | xslt-controller | Controller Service API: StringLookupService Implementations: PropertiesFileLookupService SimpleScriptedLookupService SimpleKeyValueLookupService ElasticSearchStringLookupService SimpleDatabaseLookupService DistributedMapCacheLookupService SimpleCsvFileLookupService XMLFileLookupService CouchbaseKeyValueLookupService | Controller 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 Lookup key | xslt-controller-key | Key used to retrieve the XSLT definition from the XSLT lookup controller. This property must be set when using the XSLT controller property. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | ||
Indent | indent-output | true |
| Whether or not to indent the output. |
Secure processing | secure-processing | true |
| Whether or not to mitigate various XML-related attacks like XXE (XML External Entity) attacks. |
Cache size | cache-size | 10 | Maximum number of stylesheets to cache. Zero disables the cache. | |
Cache TTL after last access | cache-ttl-after-last-access | 60 secs | The cache TTL (time-to-live) or how long to keep stylesheets in the cache after last access. |
Supports Sensitive Dynamic Properties: No
Dynamic Properties allow the user to specify both the name and value of a property.
Name | Value | Description |
---|---|---|
An XSLT transform parameter name | An XSLT transform parameter value | These XSLT parameters are passed to the transformer Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
Name | Description |
---|---|
success | The FlowFile with transformed content will be routed to this relationship |
failure | If a FlowFile fails processing for any reason (for example, the FlowFile is not valid XML), it will be routed to this relationship |