|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.xml.utils.StylesheetPIHandler
Search for the xml-stylesheet processing instructions in an XML document.
| Constructor Summary | |
|---|---|
StylesheetPIHandler(java.lang.String baseID,
java.lang.String media,
java.lang.String title,
java.lang.String charset)
Construct a StylesheetPIHandler instance that will search for xml-stylesheet PIs based on the given criteria. |
|
| Method Summary | |
|---|---|
Source |
getAssociatedStylesheet()
Return the last stylesheet found that match the constraints. |
java.lang.String |
getBaseId()
|
URIResolver |
getURIResolver()
Get the object that will be used to resolve URIs in href in xml-stylesheet processing instruction. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Handle the xml-stylesheet processing instruction. |
void |
setBaseId(java.lang.String baseId)
Added additional getter and setter methods for the Base Id to fix bugzilla bug 24187 |
void |
setURIResolver(URIResolver resolver)
Get the object that will be used to resolve URIs in href in xml-stylesheet processing instruction. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
Attributes atts)
The spec notes that "The xml-stylesheet processing instruction is allowed only in the prolog of an XML document |
| 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StylesheetPIHandler(java.lang.String baseID,
java.lang.String media,
java.lang.String title,
java.lang.String charset)
baseID - The base ID of the XML document, needed to resolve
relative IDs.media - The desired media criteria.title - The desired title criteria.charset - The desired character set criteria.| Method Detail |
public void setURIResolver(URIResolver resolver)
resolver - An object that implements the URIResolver interface,
or null.public URIResolver getURIResolver()
public Source getAssociatedStylesheet()
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class DefaultHandlertarget - The processing instruction target.data - The processing instruction data, or null if
none is supplied.
SAXException - Any SAX exception, possibly
wrapping another exception.ContentHandler.processingInstruction(java.lang.String, java.lang.String),
Associating Style Sheets with XML documents, Version 1.0
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerlocalName - The local name (without prefix), or empty string if not namespace processing.namespaceURI - The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.qName - The qualified name (with prefix), or the
empty string if qualified names are not available.
StopParseException - since there can be no valid xml-stylesheet processing
instructions past the first element.
SAXException - Any SAX exception, possibly
wrapping another exception.ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)public void setBaseId(java.lang.String baseId)
public java.lang.String getBaseId()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||