A class which implements a SAX DocumentHandler and
ContentHandler and is used by the XSLTReader when
reading an XSLT stylesheet.
characters
public void characters(char[] chars,
int start,
int length)
throws org.xml.sax.SAXException
Signals the start of characters
chars
- the character array containing the characters
to receivestart
- the index into the character array to start receiving
characters atlength
- 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 end of an element
DocumentHandler#endElement
name
- the name of the element
endElement
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
Signals the end of an element
ContentHandler#endElement
namespaceURI
- the namespace URI of the elementlocalName
- the unqualified name of the elementqName
- the qualified name of the element
endPrefixMapping
public void endPrefixMapping(String prefix)
throws SAXException
Ends the namespace prefix mapping
prefix
- the namespace prefix
getStylesheet
public XSLTStylesheet getStylesheet()
Return the XSLStylesheet created by this StylesheetHandler
- the XSLStylesheet created by this StylesheetHandler
ignorableWhitespace
public void ignorableWhitespace(char[] chars,
int start,
int length)
throws org.xml.sax.SAXException
Signals the start of ignorable whitespace characters
chars
- the character array containing the characters
to receivestart
- the index into the character array to start receiving
characters atlength
- 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
target
- the target of the processing instructiondata
- the content of the processing instruction
setDocumentLocator
public void setDocumentLocator(Locator locator)
Sets the document locator
locator
- the Locator used by this DocumentHandler
setURILocation
public void setURILocation(URILocation location)
Sets the URILocation for the stylesheet being read
location
- the URILocation for the stylesheet
setURIResolver
public void setURIResolver(URIResolver resolver)
Sets the URIResolver for this StylesheetHandler
resolver
- the URIResolver this StylesheetHandler should
use for resolving all URIs.
skippedEntity
public void skippedEntity(String name)
throws SAXException
ContentHandler#skippedEntity
Recieves notification of a skipped entity
name
- the name of the skipped entity
startDocument
public void startDocument()
throws org.xml.sax.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
DocumentHandler#startElement
name
- the name of the elementatts
- the AttributeList containing the associated
attributes for the element
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes attributes)
throws SAXException
Signals the start of element
ContentHandler#startElement
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
Starts the namespace prefix mapping
prefix
- the namespace prefixuri
- the namespace URI