Package com.jclark.xsl.sax2

The SAX (version 2) API for XT

This package provides APIs for invoking XT with SAX 2 XMLReaders providing input stylesheets and source document

Interface Summary

OutputContentHandler a SAX2 ContentHandler that serializes to a Destination and requires some initialization
OutputMethodHandler constructs a ContentHandler appropriate for a given output method (which typically is determined by the stylesheet) and destination (which is determined externally)
RawCharactersHandler a SAX style event handler that receives raw characters events for writing e.g.
ResultTreeFragment A Result Tree Fragment can write out a representation of itself as a sequence of SAX events
SAXTwoOMBuilder constructs an (XT) object model from SAX2 events
XMLProcessorEx extended public interface for an XMLProcessor, which loads an XML source into our own DOM-like structure
XSLProcessor typical usage:
// find an implementation, and construct it
XSLProcessor xsl = new XSLProcessorImpl();
xsl.setReaders(sourceXMLReader, styleXMLReader);
xsl.loadStylesheet(someInputSource);
// maybe clone for re-use ...

Class Summary

HTMLOutputHandler A OutputContentHandler that writes an HTML representation to a Destination
Indenter performs "pretty-printing" by wrapping another ContentHandler, intercepting SAX events, and inserting whitespace events as appropriate.
MultiNamespaceResult
NXMLOutputHandler an output handler that recognizes our special technique for signalling non XML characters
NXMLOutputHandler.CharacterHandler
NXMLOutputHandler.ControlCharacterHandler
NXMLOutputHandler.DataCharacterHandler
NXMLOutputHandler.EscapeCharacterHandler
NXMLOutputHandler.LineControlCharacterHandler
OutputMethodDefaulter automagically decides to use the html output method if the first start element name is "html" in no namespace

Recieves SAX parse events from a ResultBase, till it gets a look at the root element's name.

OutputMethodDefaulter.CharactersEvent
OutputMethodDefaulter.CommentEvent
OutputMethodDefaulter.Event
OutputMethodDefaulter.IgnorableWhitespaceEvent
OutputMethodDefaulter.ProcessingInstructionEvent
OutputMethodDefaulter.RawCharactersEvent
OutputMethodHandlerImpl produces a ContentHandler suitable for a given output method i.e text, XML, etc and destination
OutputMethodProperties Presents a java.util.Properties representation the information, declared in the xsl:output element, that modify how transformation output is serialized
ResultBase abstract base class represents the results of executing a stylesheet Action -- constructs result components.
SAXTwoOMBuilderImpl constructs an (xslt) XML object model from SAX2 events N.B.
TextOutputHandler An object which serailizes SAX 2 events to raw text
XMLOutputHandler A ContentHandler that writes an XML representation to an OutputStream.
XMLProcessorImpl Builds an object model from a SAX event stream
XSLProcessorImpl An XSLT Processor
The SAX (version 2) API for XT

This package provides APIs for invoking XT with SAX 2 XMLReaders providing input stylesheets and source document