External processes allow users to take advantage of a transformation program that is not specific to Transmorpher. This can be very useful when some legacy programs exist, when one can implement more easily some transformations in another language or when Transmorpher is too limited for expressing the required transformation.
An external process can have several inputs and outputs, and is identified by its type. It can also take parameters under the form of a file (this is too limiting however and, in the future, we will introduce true parameters).
The apply-external element introduces the use of an external transformation in a process body. Its structure is the following:
In the bibliography example, the external XSLT processes are used for sorting and formatting:
Transmorpher provides an XSLT external process type which enables the processing of XSLT stylesheets already defined (this was the case of the stylesheets of the bibliography example which have not been changed to run under Transmorpher). Of course, the XSLT external processes have only one input and one output. Our implementation takes advantage of JAXP for better portability.
References to contributed extensions can be found here
Extensions must implement the fr.fluxmedia.transmorpher.TProcessFactory.TApplyProcess interface.
Next chapter: Iterators