How to Generate Java Code for XSLT

To generate Java code for XSLT:
1. Define at least one scenario for the XSLT for which you want to generate Java code. The scenario must use the Saxon processor. See <hyperlink>Scenario Settings for more information.
2. Select XSLT > Generate Java Code from the Stylus Studio menu.

The Generate Java Code dialog box appears.

Figure 227. Java Code Generation Dialog Box

3. Specify the settings you want for the target directory, package and class names, and so on. See <hyperlink>Java Code Generation Settings if you need help with this step.
4. Select the scenarios for which you want to generate Java code.
5. Click OK.

Stylus Studio generates Java code for the XSLT. When the code generation is complete, the resulting file (classname .java) is opened in the Stylus Studio Java Editor.

Free Stylus Studio XML Training:
W3C Member