Editing XSLT stylesheets

<oXygen/> provides special support for developing XSLT 1.0 / 2.0 stylesheets.

 Validating XSLT stylesheets

Validation of XSLT stylesheets documents is performed with the help of an XSLT processor configurable from user preferences according to the XSLT version: 1.0 or 2.0. For XSLT 1.0 the options are: Xalan, Saxon 6.5.5, Saxon 8B, Saxon 8SA (if the user installs it as additional package), MSXML 4.0, MSXML.NET, a JAXP transformer specified by the main Java class. For XSLT 2.0 the options are: Saxon 8B, Saxon 8SA (if the user installs it as additional package), a JAXP transformer specified by the main Java class.

The Validate toolbar provides a button Validation options for quick access to the XSLT options in the <oXygen/> user preferences.

 Custom validation of XSLT stylesheets

If you need to validate an XSLT stylesheet with other validation engine than the built-in ones you have the possibility to configure external engines as custom XSLT validation engines in <oXygen/>. After such a custom validator is properly configured in Preferences it can be applied on the current document with just one click on the External Validation toolbar. The document is validated against the schema declared in the document.

 

Figure 4.60. External validation toolbar

External validation toolbar

There are two validators configured by default:

MSXML 4.0

included in <oXygen/> (Windows edition). It is associated to the XSL Editor type in Preferences.

MSXML.NET

included in <oXygen/> (Windows edition). It is associated to the XSL Editor type in Preferences.