Java Code Generation Settings

When you generate Java code for an XQuery document, Stylus Studio displays the Java Code Generation dialog box.

Figure 360. Java Code Generation Dialog Box

You use this dialog box to specify

  • The target directory in which you want the Java code created. c:\temp\myJavaCode, for example. If the directory you name does not exist, Stylus Studio creates it when you run the Code Generation wizard.

The default is a \sources directory created in your Windows user data directory - C:\Documents and Settings\sula\My Documents\Stylus Studio\sources , for example.

  • Optionally, a package name. If you specify a package name, this name is used for a subfolder created in the target directory you specify. If you specify myPackage as the package name, for example, the generated code is written to c:\temp\myJavaCode\myPackage. (Though optional, it is considered good practice to create a package name.)
  • The class name. Stylus Studio also uses the class name for the .java file created by the Code Generation wizard. For example, if you provide the name myClass, Stylus Studio creates c:\temp\myJavaCode\myPackage\myClass.java.

The default class name is taken from the XQuery file name.

  • Whether or not you want to add the generated code to the current Stylus Studio project. If you choose to add the generated code to the project, it creates a folder using the package name you specify and places the .java file in that folder. If you do not specify a package name, the .java file is added directly below the project root in the Project window.
  • Whether or not you want to embed the XQuery source in the Java code. Embedding the XQuery source allows the Java code to run without referencing any external sources.

MySQL XML Tools

The MySQL tools in Stylus Studio simplify XML related development tasks for working with MySQL and XML.

Support for US National Library of Medicine (NLM) Document Type Definitions

Stylus Studio provides support for editing and validating XML documents using US National Library of Medicine data models. In this tutorial, we'll provide a step-by-step overview of how to use the NLM DTD's in Stylus Studio!

Learn Stylus Studio in 6 Minutes

Learn Stylus Studio in 6 Minutes is the world's fastest introduction to XML development using Stylus Studio. In just six minutes, learn how to leverage Stylus Studio's powerful XML tools and utilities to simplify XML development.

Learn XQuery in 10 Minutes, by Dr. Michael Kay - An XQuery Tutorial

Learn XQuery in 10 Minutes By Dr. Michael Kay is for all those people who really want to know what XQuery is, but don't have the time to find out. It's the fastest XQuery tutorial on the planet - read it now!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member