This DPU performs XSL transformation over input files, using a single static template. The outcome of the transformation will be in file format.
This DPU supports random UUID generation using
randomUUID() function in namespace
|Skip file on error||If selected and the transformation fails, then the file is skipped and the execution continues.||False|
|File extension||If provided then the file extension in virtual path is set to the given value.|
If no virtual path is set then an error message is logged and no virtual path is set.
|Number of extra threads|
How many additional workers should be created. One worker thread is always created even if the value is set to zero.
Remember that a higher number of workers may speed up transformation but will also result in greater memory consumption.
|XSLT template||The template used during the transformation.|
Inputs and Outputs
|files||i||FilesDataUnit||File/s to be transformed|
|files||o||FilesDataUnit||Transformed file of given type|
|config||i||RdfDataUnit||Dynamic DPU configuration, see Advanced configuration|
It is also possible to dynamically configure the DPU over its input
config using RDF data.
Transform Downloaded XML Files
The following image shows a fragment of a pipeline which first downloads an XML file, uses XSLT to transform the file into RDF/XML file, followed by transforming this outputted file into RDF Data. The configuration for the XSLT can be seen below.
Transform XML Data using dynamically configured input config data
Using the above sample config I can construct the input for our next example. Allowing me to use RDF config as my input in place of my file, demonstrated below.