This package provides APIs for invoking XT with SAX 1 parsers providing input stylesheets and source document
This version of XT continues the public interface of earlier
versions. This interface is defined in
com.jclark.xsl.sax.XSLProcessor which is implemented by
com.jclark.xsl.sax.XSLProcessorImpl. This interface is
based on SAX 1.
There is also a simple API based purely on the
DOM in the package com.jclark.xsl.dom
A demonstration is provided of XT used in a servlet. This requires a
servlet engine that
implements at least version 2.1 of the Java Servlet API. The servlet
class is com.jclark.xsl.sax.XSLServlet. The servlet
requires an init parameter stylesheet; the value is the
path of the stylesheet in a form suitable to be passed to
ServletContext.getResource. The translated path gives
the XML document to be transformed. An extension of .xml
will be automatically added to the translated path if necessary.
(Some browsers assume that a URL ending in .xml is an XML
document.) Parameters from the query part of the URL are passed in as
parameters to the stylesheet. The stylesheet is cached on
initialization.