How to Generate Java Code for XQuery

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

The Generate Java Code dialog box appears.

Figure 353. Java Code Generation Dialog Box

3. Specify the settings you want for the target directory, package and class names, and so on. See 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 XQuery. When the code generation is complete, the resulting file (classname .java) is opened in the Stylus Studio Java Editor.

 
Free Stylus Studio XML Training: