Generating XSLT Code

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

Home >  Common Tasks > Working with Mappings >

Generating XSLT Code

To generate XSLT code:

1.Select the menu item File | Generate code in | XSLT 1.0 (XSLT 2.0).
2.Select the folder you want to save the generated XSLT file, and click OK. MapForce generates the code and displays the result of the operation in the Messages window.

 

The name of the generated .xslt file has the form <A>MapTo<B>.xslt, where:

 

"<A>" is the value of the Application Name field in mapping settings (see Changing the Mapping Settings).
"<B>" is the name of the target mapping component. To change this value, open the settings of the target component and edit the value of the Component Name field (see Changing the Component Settings).

 

The folder where the .xslt file is saved also contains a batch file called DoTransform.bat which can be run with RaptorXML Server to transform the data (see Automation with RaptorXML Server).

 

To run the transformation with RaptorXML Server:

1.Download and install RaptorXML from the download page (https://www.altova.com/download#server).
2.Start the DoTransform.bat batch file located in the previously designated output folder.

 

Note that you might need to add the RaptorXML installation location to the path variable of the Environment Variables. You can find the RaptorXML documentation on the website documentation page (https://www.altova.com/documentation).


© 2019 Altova GmbH