|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler com.icl.saxon.PIGrabber
The PIGrabber class is a SAX ContentHandler that looks for xml-stylesheet processing instructions and tests whether they match specified criteria; for those that do, it creates an InputSource object referring to the relevant stylesheet
Constructor Summary | |
PIGrabber()
|
Method Summary | |
SAXSource[] |
getAssociatedStylesheets()
Return list of stylesheets that matched, as an array of Source objects |
java.lang.String[] |
getStylesheetURIs()
Get the stylesheet URIs as an array of Strings |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Handle xml-stylesheet PI |
void |
setBaseURI(java.lang.String uri)
Set the base URI |
void |
setCriteria(java.lang.String media,
java.lang.String title,
java.lang.String charset)
|
void |
setURIResolver(URIResolver resolver)
Set the URI resolver to be used for the href attribute |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Abort the parse when the first start element tag is found |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PIGrabber()
Method Detail |
public void setCriteria(java.lang.String media, java.lang.String title, java.lang.String charset)
public void setBaseURI(java.lang.String uri)
public void setURIResolver(URIResolver resolver)
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public SAXSource[] getAssociatedStylesheets() throws TransformerException
TransformerException
- if a URI cannot be resolvedpublic java.lang.String[] getStylesheetURIs() throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |