net.sf.saxon.event
Class PIGrabber
public
class
PIGrabber
extends ProxyReceiver
The PIGrabber class is a Receiver 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
Author: Michael H. Kay
Method Summary |
Source[] | getAssociatedStylesheets()
Return list of stylesheets that matched, as an array of Source objects |
boolean | isTerminated()
Determine whether the parse terminated because the first start element tag was found |
void | open() |
void | processingInstruction(String target, CharSequence data, int locationId, int properties)
Handle xml-stylesheet PI |
void | setBaseURI(String uri)
Set the base URI |
void | setCriteria(String media, String title, String charset) |
void | setFactory(Configuration config) |
void | setURIResolver(URIResolver resolver)
Set the URI resolver to be used for the href attribute |
void | startElement(int namecode, int typecode, int locationId, int properties)
Abort the parse when the first start element tag is found |
public Source[] getAssociatedStylesheets()
Return list of stylesheets that matched, as an array of Source objects
Returns: null if there were no matching stylesheets.
Throws: net.sf.saxon.trans.XPathException if a URI cannot be resolved
public boolean isTerminated()
Determine whether the parse terminated because the first start element tag was found
public void open()
public void processingInstruction(String target, CharSequence data, int locationId, int properties)
Handle xml-stylesheet PI
public void setBaseURI(String uri)
Set the base URI
public void setCriteria(String media, String title, String charset)
public void setURIResolver(URIResolver resolver)
Set the URI resolver to be used for the href attribute
public void startElement(int namecode, int typecode, int locationId, int properties)
Abort the parse when the first start element tag is found