Use RaptorXML to Pass Key/Value Parameter Pairs

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Job Configuration Examples >

Use RaptorXML to Pass Key/Value Parameter Pairs

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 builtin_function 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/2019/xslt).

fs_xslt_example_1

2.Configure the job as shown below.

fs_xslt_example_2

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:

fs_xslt_example_3

To use this second approach, the layout of the parameter raptorxmlcmdl.xslt_parameters_name must be changed, as follows:

 

Click ff-setTo , and then click <Expression>.

 

To switch back to the key-value pairs layout:

 

Click ff-setTo , and then click <Value>.

© 2019 Altova GmbH