You can generate XSLT 1.0 and 2.0 code from a mapping, provided that you have designed the mapping for that respective language, see also Selecting a Transformation Language.
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.
•"<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).
See also Library paths in generated code.
After you generate XSLT code, a batch file called DoTransform.bat is created in the same directory with the .xslt file. You can run DoTransform.bat with RaptorXML Server, see also 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 environment variable of the operating system. You can find the RaptorXML documentation at https://www.altova.com/documentation.