com.icl.saxon
public class PIGrabber extends DefaultHandler
Constructor and Description |
---|
PIGrabber() |
Modifier and Type | Method and Description |
---|---|
SAXSource[] |
getAssociatedStylesheets()
Return list of stylesheets that matched, as an array of Source objects
|
String[] |
getStylesheetURIs()
Get the stylesheet URIs as an array of Strings
|
void |
processingInstruction(String target,
String data)
Handle xml-stylesheet PI
|
void |
setBaseURI(String uri)
Set the base URI
|
void |
setCriteria(String media,
String title,
String charset) |
void |
setURIResolver(URIResolver resolver)
Set the URI resolver to be used for the href attribute
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Abort the parse when the first start element tag is found
|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public void setBaseURI(String uri)
public void setURIResolver(URIResolver resolver)
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
processingInstruction
in class DefaultHandler
SAXException
public SAXSource[] getAssociatedStylesheets() throws TransformerException
TransformerException
- if a URI cannot be resolvedpublic String[] getStylesheetURIs() throws SAXException
SAXException