We can use xml-transform-service to execute a XSLT in order to transform XML documents from one format to another. XSLT needs no further introduction.
Without any additional configuration Interlok will use the default Saxon transformation engine to handle transforms; however this is configurable within the transform-service itself by selecting the appropriate transformer factory. You can also pass in metadata (String/Object/) into your XSLT via use of the xml-transform-pararmeter. A common use case for this is to extract information via xpath-metadata-service or xpath-object-metadata-service and to then use those values within your XSLT.
Through use of xpath-object-metadata-service you can extract a node from the current document, store it in object metadata, replace the entire document was something else (perhaps from a HTTP request) and then subsequently insert the node back into the data at a later point within the same workflow. This is useful if your service chain is complex and the required information can’t be easily stored as strings.
XML Transformer implementations
|stx-transformer-factory||Use Joost as a transform factory for Streaming Transformations for XML support via net.sf.joost:joost:0.9.1|
|xslt-transformer-factory||Standard XSLT transform; You can specify the transformer factory implementation is you want to switch to Xalan or another factory.|