net.sf.saxon.event
Class PIGrabber
- Receiver, Result
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
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() - Start of event stream
|
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
|
append , attribute , characters , close , comment , endDocument , endElement , getConfiguration , getDocumentLocator , getNamePool , getUnderlyingReceiver , namespace , open , processingInstruction , setPipelineConfiguration , setSystemId , setUnderlyingReceiver , setUnparsedEntity , startContent , startDocument , startElement |
getAssociatedStylesheets
public Source[] getAssociatedStylesheets()
throws TransformerException
Return list of stylesheets that matched, as an array of Source objects
- null if there were no matching stylesheets.
isTerminated
public boolean isTerminated()
Determine whether the parse terminated because the first start element tag was found
setBaseURI
public void setBaseURI(String uri)
Set the base URI
setCriteria
public void setCriteria(String media,
String title,
String charset)
setURIResolver
public void setURIResolver(URIResolver resolver)
Set the URI resolver to be used for the href attribute