How to Generate Java Code for XQuery

To generate Java code for XQuery:
1. Open the XQuery document for which you want to generate Java code.
2. Define at least one scenario for the XQuery document for which you want to generate Java code. The scenario must use the Saxon or DataDirect XQuery ® processor. See Scenario Properties Used for Generating Code for more information.
3. Select the scenario for which you want to generate Java code.
4. Close the Scenario Properties dialog box.
5. Select XQuery > Generate Java Code from the Stylus Studio menu.

The Generate Java Code dialog box appears.

Figure 361. Java Code Generation Dialog Box

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

Scientific, Photo & Control Equipment

Scientific, photo & control equipment companies hear clicks and beeps all day. But, when it comes to data integration it needs to be done in a flash, that's why they use Stylus Studio. Come see which top companies are seeing XML in a brand new light!

Sun Multi-Schema XML Validator (MSV)

Learn how to integrate the Multi Schema Validator (MSV) into Stylus Studio as one of the Custom Validation Engines. It will work for files with a DTD, a single XSD, or both a DTD and a single XSD.

Support for DataDirect SequeLink

Learn about Stylus Studio's support for DataDirect SequeLink, an end-to-end database middleware solution that provides a universal thin client for ODBC, JDBC, ADO or .NET, providing flexibility for both client- and server-based deployments.

Building Workflow Applications with XML

Learn how to design custom XML workflow applications - from modeling your data and information processes, to capturing input from users in XML, and finally, generating useful queries and reports from the XML data -- using XSLT & XQuery technologies.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member