Compiling Generated Code

In order to compile generated code, these JAR files must be in your system classpath:

  • Saxonsa.jar
  • ddxq.jar

These files are in in the \bin directory where you installed Stylus Studio.

In addition, if your XQuery or XLST code uses DataDirect XML Converters, these JAR files must also be in your system classpath:

  • /Components/XML Converters for Java/lib/XMLConverters.jar
  • /Components/XML Converters for Java/lib/codehaus/wstx-asl.jar

Stylus Studio ensures that these files are added to your classpath when you generate code. If you plan to compile the generated code outside Stylus Studio, you need to modify your system classpath yourself.

How to Compile and Run Java Code in Stylus Studio

To compile Java code in Stylus Studio:
1. Make sure the Java Editor is the active window.
2. Click the Compile button ( ).

Alternatives: Press Ctrl + F7, or select Java > Compile from the Stylus Studio menu.

Stylus Studio compiles the Java code. Results are displayed in the Output window.

To run Java code in Stylus Studio:
1. Make sure the Java Editor is the active window.
2. Click the Run button ( ).

Alternatives: Press Ctrl + F5, or select Java > Run from the Stylus Studio menu.

If the code has not been compiled, Stylus Studio displays a prompt asking if you want to compile the code now. Otherwise, Stylus Studio runs the Java code. Results are displayed in the Output window.

XQuery Documentation Generator

Stylus Studio provides integrated support for xqDoc so you can generate XQuery documentation directly from the XQuery editor.

XQuery Integration

Learn how new XQuery technologies can simplify legacy data integration by leveraging industry standards, proven open-source XML processing components, and Stylus Studio's integrated XQuery & XML tools.

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.

XML Operations

Using XML Pipeline it's easy to visually specify a series of XML operations to apply on your XML data, including parsing, validating, converting and transforming, according to the needs of your business application.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member