Please enable JavaScript to view this site.

Altova MapForce 2022 Professional Edition

You can generate XSLT 1.0, XSLT 2.0, or XSLT 3.0 code from a mapping if you have chosen one of these languages as a data transformation language. To generate XSLT code, follow the instructions below:


1.Select the menu item File | Generate Code in | XSLT 1.0/XSLT 2.0/XSLT 3.0.
2.Select the folder where 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.


After the code generation has been completed, the destination folder will include the following two files:


1.An XSLT transformation file, named after the target schema. This transformation file has the following format: <Mapping>MapTo<TargetFileName>.xslt. <Mapping> is the value of the Application Name field in the mapping settings. <TargetFileName> 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. For more information, see Changing the Component Settings and Library paths in generated code.

2.A DoTransform.bat file, which enables you to run the XSLT transformation with Altova RaptorXML Server from the command line. In order to run the command, you will need to install RaptorXML.


To preview the generated XSLT code, click the XSLT/XSLT2/XSLT3 tab at the bottom of the Mapping window. The name of the tab depends on whether you selected XSLT 1.0, XSLT 2.0, or XSLT 3.0 as a transformation language.


© 2015-2021 Altova GmbH