| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | m_baseID
The baseID of the document being processed. |
| pack-priv String | m_charset
The desired character set criteria. |
| pack-priv String | m_media
The desired media criteria. |
| pack-priv List | m_stylesheets
A list of SAXSource objects that match the criteria. |
| pack-priv String | m_title
The desired title criteria. |
| pack-priv URIResolver | m_uriResolver
The object that implements the URIResolver interface, or null. |
| Access | Constructor and Description |
|---|---|
| public | StylesheetPIHandler(String
The base ID of the XML document, needed to resolve
relative IDs. baseID, String The desired media criteria. media, String The desired title criteria. title, String The desired character set criteria. charset)Construct a StylesheetPIHandler instance that will search for xml-stylesheet PIs based on the given criteria. |
| Modifier and Type | Method and Description |
|---|---|
| public Source | Returns: Source object that references the last stylesheet reference that matches the constraints.Return the last stylesheet found that match the constraints. |
| public String | |
| public URIResolver | Returns: The URIResolver that was set with setURIResolver.Get the object that will be used to resolve URIs in href in xml-stylesheet processing instruction. |
| public void | processingInstruction(String
The processing instruction target. target, String The processing instruction data, or null if
none is supplied. data)Overrides org. Implements org. Handle the xml-stylesheet processing instruction. |
| public void | |
| public void | setURIResolver(URIResolver
An object that implements the URIResolver interface,
or null. resolver)Get the object that will be used to resolve URIs in href in xml-stylesheet processing instruction. |
| public void | startElement(String
The Namespace URI, or an empty string. namespaceURI, String The local name (without prefix), or empty string if not namespace processing. localName, String The qualified name (with prefix). qName, Attributes The specified or defaulted attributes. atts)Overrides org. Implements org. The spec notes that "The xml-stylesheet processing instruction is allowed only in the prolog of an XML document.", so, at least for right now, I'm going to go ahead an throw a TransformerException in order to stop the parse. |
| m_baseID | back to summary |
|---|---|
| pack-priv String m_baseID The baseID of the document being processed. | |
| m_charset | back to summary |
|---|---|
| pack-priv String m_charset The desired character set criteria. | |
| m_media | back to summary |
|---|---|
| pack-priv String m_media The desired media criteria. | |
| m_stylesheets | back to summary |
|---|---|
| pack-priv List<Source> m_stylesheets A list of SAXSource objects that match the criteria. | |
| m_title | back to summary |
|---|---|
| pack-priv String m_title The desired title criteria. | |
| m_uriResolver | back to summary |
|---|---|
| pack-priv URIResolver m_uriResolver The object that implements the URIResolver interface, or null. | |
| StylesheetPIHandler | back to summary |
|---|---|
| public StylesheetPIHandler(String baseID, String media, String title, String charset) Construct a StylesheetPIHandler instance that will search for xml-stylesheet PIs based on the given criteria. | |
| getAssociatedStylesheet | back to summary |
|---|---|
| public Source getAssociatedStylesheet() Return the last stylesheet found that match the constraints.
| |
| getBaseId | back to summary |
|---|---|
| public String getBaseId() | |
| getURIResolver | back to summary |
|---|---|
| public URIResolver getURIResolver() Get the object that will be used to resolve URIs in href in xml-stylesheet processing instruction.
| |
| processingInstruction | back to summary |
|---|---|
| public void processingInstruction(String target, String data) throws SAXException Overrides org. Implements org. Handle the xml-stylesheet processing instruction.
| |
| setBaseId | back to summary |
|---|---|
| public void setBaseId(String baseId) Added additional getter and setter methods for the Base Id to fix bugzilla bug 24187 | |
| setURIResolver | back to summary |
|---|---|
| public void setURIResolver(URIResolver resolver) Get the object that will be used to resolve URIs in href in xml-stylesheet processing instruction.
| |
| startElement | back to summary |
|---|---|
| public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException Overrides org. Implements org. The spec notes that "The xml-stylesheet processing instruction is allowed only in the prolog of an XML document.", so, at least for right now, I'm going to go ahead an throw a TransformerException in order to stop the parse.
| |