gnu.xml.pipeline

Class XsltFilter

public final class XsltFilter extends EventFilter

Packages an XSLT transform as a pipeline component. Note that all DTD events (callbacks to DeclHandler and DTDHandler interfaces) are discarded, although XSLT transforms may be set up to use the LexicalHandler to write DTDs with only an external subset. Not every XSLT engine will necessarily be usable with this filter, but current versions of SAXON and Xalan should work well.

Version: $Date: 2001/10/23 23:12:58 $

Author: David Brownell

See Also:

Constructor Summary
XsltFilter(String stylesheet, EventConsumer next)
Creates a filter that performs the specified transform.

Constructor Detail

XsltFilter

public XsltFilter(String stylesheet, EventConsumer next)
Creates a filter that performs the specified transform. Uses the JAXP 1.1 interfaces to access the default XSLT engine configured for in the current execution context, and parses the stylesheet without custom EntityResolver or ErrorHandler support.

Parameters: stylesheet URI for the stylesheet specifying the XSLT transform next provides the ContentHandler and LexicalHandler to receive XSLT output.

Throws: SAXException if the stylesheet can't be parsed IOException if there are difficulties bootstrapping the XSLT engine, such as it not supporting SAX well enough to use this way.

Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2013-01-12.