Altova MapForce 2024 Enterprise Edition

You can generate code from a mapping depending on the language you have selected as a data transformation language. You can generate code in the following languages:


XSLT 1.0/XSLT 2.0/XSLT 3.0

XQuery (Professional and Enterprise editions)

Java (Professional and Enterprise editions)

C# (Professional and Enterprise editions)

C++ (Professional and Enterprise editions)



If you want to generate XSLT code, follow the instructions below:


1.Select the menu item File | Generate Code in | XSLT.
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.


To preview the generated XSLT code, click the XSLT pane at the bottom of the Mapping window. The same steps apply to any of the languages listed above.


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 Change 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.


© 2017-2023 Altova GmbH