Compiling Generated Code

In order to compile the Java code generated for XSLT, you need to make sure that the following JAR files are in the Stylus Studio classpath:

  • CustomFileSystem.jar
  • Saxon8.jar

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

How to Modify the Stylus Studio Classpath

To modify the Stylus Studio classpath:
1. Select Tool > Options from the Stylus Studio menu.
2. Click Java Virtual Machine under General.
3. Click the browse button alongside the Classpath field.

The Add Directory or JAR File to Classpath dialog box appears.

4. Click the browse folders ( ) button.

A new entry field appears in the Locations list box. Two buttons appear to the right of the entry field.

Figure 229. Entry Field for JAR File Classpath

5. Click the browse jar files button ( ).

Stylus Studio displays the Browse for JAR Files dialog box.

Figure 230. Browse for JAR Files Dialog Box

6. Navigate to the Stylus Studio \bin directory, select the CustomFileSystem.jar file, then click Open.
7. Repeat step 6, this time selecting the Saxon8.jar file.
8. Click OK to close the Add Directory or JAR File to Classpath dialog box.

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.

XSLT Mapper

Simplify XSLT mapping with the Stylus Studio XSLT Mapper - supports multiple data sources, round-trip engineering (synchronized editing views), XSLT function blocks, integrated XSLT preview and more.

XSD Documentation Generator

Stylus Studio®'s XSD Editor includes an integrated XSD documentation generator, allowing you to easily publish XML content models defined in XSD in a convenient, HTML format.

Content Management

Build Content Management systems with Stylus Studio's powerful XML publishing tools that enable you to unlock and re-use valuable content from your enterprise information repositories.

OASIS Catalogs for Fun and Profit

This tutorial about, Understanding Catalogs, A Use-Case for Catalogs, Registering Catalogs in a Project, Using the DOCTYPE Syntax Sense:X Aid, Navigating Catalogs, Building Composite Catalogs, Converting TR9401 Catalogs to OASIS XML Catalogs and more

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member