XTemp Translator

Overview

The XTemp translator can be used to convert core XTemp scripts into XSLT 2.0 stylesheets. The stylesheets it produces can then be executed with a standard XSLT 2.0 transformation processor, such as Saxon.

Usage

To use the XTemp translator, a standard XSLT 2.0 transformation processor is required. We will use the open source XSLT 2.0 processor Saxon-HE (Home Edition) 9.

The XTemp translator is itself an XSLT 2.0 stylesheet. To convert an XTemp script file, transform it with the xtemp_translator stylesheet and save the result as a stylesheet. This command line converts source file example.xtemp into stylesheet example.xslt

java -jar saxon9he.jar -s:example.xtemp -xsl:xtemp_translator.xsl -o:example.xsl

To execute the stylesheet the translator produces, you will need an xml file that contains a log of the events for the XTemp script was written to analyze. Transform the event log file with the stylesheet produced by the translator.

java -jar saxon9he.jar -s:events.xml -xsl:example.xsl

Limitations