org.exolab.adaptx.xslt.util

Class SAXInput

Implemented Interfaces:
DocumentHandler

public class SAXInput
extends java.lang.Object
implements DocumentHandler

A simple *hack* to provide a SAX adapter for the source tree
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/01 07:39:57 $
Author:
Keith Visco

Constructor Summary

SAXInput()
Creates a new SAXInput

Method Summary

void
characters(char[] chars, int start, int length)
Signals the start of characters
void
endDocument()
Signals the end of the document
void
endElement(String name)
Signals the start of element
void
ignorableWhitespace(char[] chars, int start, int length)
Signals the start of ignorable whitespace characters
void
processingInstruction(String target, String data)
Signals to recieve a processing instruction
void
setDocumentLocator(Locator locator)
Sets the document locator
void
setOutputHandler(Writer writer)
void
setOutputHandler(ResultHandler handler)
void
setProcessor(XSLTProcessor processor)
Sets the XSLTProcessor to use for the XSL Transformations
void
setStylesheet(XSLTStylesheet stylesheet)
void
startDocument()
Signals the start of a document
void
startElement(String name, AttributeList atts)
Signals the start of element

Constructor Details

SAXInput

public SAXInput()
Creates a new SAXInput

Method Details

characters

public void characters(char[] chars,
                       int start,
                       int length)
            throws org.xml.sax.SAXException
Signals the start of characters
Parameters:
chars - the character array containing the characters to receive
start - the index into the character array to start receiving characters at
length - the number of characters to recieve

endDocument

public void endDocument()
            throws org.xml.sax.SAXException
Signals the end of the document

endElement

public void endElement(String name)
            throws org.xml.sax.SAXException
Signals the start of element
Parameters:
name - the name of the element

ignorableWhitespace

public void ignorableWhitespace(char[] chars,
                                int start,
                                int length)
            throws org.xml.sax.SAXException
Signals the start of ignorable whitespace characters
Parameters:
chars - the character array containing the characters to receive
start - the index into the character array to start receiving characters at
length - the number of characters to recieve

processingInstruction

public void processingInstruction(String target,
                                  String data)
            throws org.xml.sax.SAXException
Signals to recieve a processing instruction
Parameters:
target - the target of the processing instruction
data - the content of the processing instruction

setDocumentLocator

public void setDocumentLocator(Locator locator)
Sets the document locator
Parameters:
locator - the Locator used by this DocumentHandler

setOutputHandler

public void setOutputHandler(Writer writer)

setOutputHandler

public void setOutputHandler(ResultHandler handler)

setProcessor

public void setProcessor(XSLTProcessor processor)
Sets the XSLTProcessor to use for the XSL Transformations
Parameters:
processor - the XSLTProcessor to invoke

setStylesheet

public void setStylesheet(XSLTStylesheet stylesheet)

startDocument

public void startDocument()
            throws SAXException
Signals the start of a document

startElement

public void startElement(String name,
                         AttributeList atts)
            throws org.xml.sax.SAXException
Signals the start of element
Parameters:
name - the name of the element
atts - the AttributeList containing the associated attributes for the element