XML technologies / XSLT / XSLT 2.0 processors / Saxon 9 / Kernow

(Excerpt from “XSLT 2.0 & XPath 2.0” by Frank Bongers)

Andrew Welch’s Kernow provides a graphical interface and API on the Java platform for processor Saxon. Installation, including Saxon, is easy and use more convenient than the command line. Download: http://kernowforsaxon.sourceforge.net/

The ZIP file contains installer kernow.exe for Windows. The current version is Kernow 1.5.2 (now 1.8, as of July 2014), including the somewhat older Saxon 8.9.0.4.

Alternatively, install through Java Web Start, for which the developer promises automatic updates. Simply visit: http://kernowforsaxon.sourceforge.net/jws.html

Java Web Start requires an existing working Java installation!

Once installed, Kernow accesses all Saxon functions. Menu Configuration > Saxon settings sets processing parameters otherwise available through command-line options. Selected options apply automatically to all transformations.

Configuring Saxon options in Kernow

Figure: Configuring Saxon options in Kernow

Managing an SA license key enables schema-aware processing. The required settings are in Schema support > Settings Saxon-SA; otherwise these options are grayed out.

Select a source file and stylesheet on the “Einzeldatei” tab. Kernow displays the transformation result in a text field for copying or editing. Check “Send output to file” to write to a file, specifying its name and path.

Transformation result in Kernow’s source window

Figure: Transformation result in Kernow’s source window

Like Saxon, Kernow processes whole directories on the “Ordner” tab. Specify source and target directories and stylesheet. “Recurse subdirectories” includes source subdirectories.

Standalone stylesheets or XQuery documents can run without a source, for example when sources are loaded through document() inside the stylesheet. For XSLT, specify a starting template (initial template). XQuery documents in this mode require extension .xqy or .xquery. Alternatively, enter XQuery manually in the “XQuery-Sandbox”.

Input can be validated anytime; without Saxon-SA, Xerces is used. Batch processing on the “Batch” tab uses Ant buildfiles, allowing automation of successive transformations.

  

 

 

 

back to top