If RaptorXML Server (or RaptorXML+XBRL Server) runs under FlowForce Server management, you can pass key-value pairs of parameters to execution steps that run XSLT stylesheets. For example, let's assume that you want to run an XSLT stylesheet called transformation.xslt which takes as input a file called books.xml, and two required parameters, "param1" and "param2".
You can create a FlowForce Server jobs to run such an XSLT transformation as follows:
1.In the job configuration page, browse for the xslt function located in the /RaptorXML container. You can also find this function in any container that corresponds to a specific RaptorXML release (for example, /RaptorXML/2020/xslt).
2.Configure the job as shown below.
Note the following:
•In the example above, only some of the parameters are supplied. For a full list of parameters you can supply to the execution step, refer to the RaptorXML Server documentation, see https://www.altova.com/documentation.)
•The "Working directory" parameter is set to a directory from where all the input files are read (this makes it possible to enter just the file names instead of full paths). The output file will also be generated in the working directory.
•The XSLT parameters are supplied to the job as key-value pairs. Notice the parameter name and value are entered in separate boxes. Also, the parameter value is enclosed within quotes.
There is also another way to supply parameters, by entering a FlowForce Server expression, for example:
To use this second approach, the layout of the parameter raptorxmlcmdl.xslt_parameters_name must be changed, as follows:
•Click , and then click <Expression>.
To switch back to the key-value pairs layout:
•Click , and then click <Value>.