<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!--NewPage--> | |
<HTML> | |
<HEAD> | |
<!-- Generated by javadoc (build 1.5.0_18) on Sun Apr 01 21:18:38 PDT 2012 --> | |
<TITLE> | |
StylesheetPIHandler | |
</TITLE> | |
<META NAME="keywords" CONTENT="org.apache.xml.utils.StylesheetPIHandler class"> | |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> | |
<SCRIPT type="text/javascript"> | |
function windowTitle() | |
{ | |
parent.document.title="StylesheetPIHandler"; | |
} | |
</SCRIPT> | |
<NOSCRIPT> | |
</NOSCRIPT> | |
</HEAD> | |
<BODY BGCOLOR="white" onload="windowTitle();"> | |
<!-- ========= START OF TOP NAVBAR ======= --> | |
<A NAME="navbar_top"><!-- --></A> | |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_top_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StylesheetPIHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../org/apache/xml/utils/StringVector.html" title="class in org.apache.xml.utils"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/xml/utils/SuballocatedByteVector.html" title="class in org.apache.xml.utils"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../index.html?org/apache/xml/utils/StylesheetPIHandler.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="StylesheetPIHandler.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_top"></A> | |
<!-- ========= END OF TOP NAVBAR ========= --> | |
<HR> | |
<!-- ======== START OF CLASS DATA ======== --> | |
<H2> | |
<FONT SIZE="-1"> | |
org.apache.xml.utils</FONT> | |
<BR> | |
Class StylesheetPIHandler</H2> | |
<PRE> | |
java.lang.Object | |
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">org.xml.sax.helpers.DefaultHandler | |
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.xml.utils.StylesheetPIHandler</B> | |
</PRE> | |
<DL> | |
<DT><B>All Implemented Interfaces:</B> <DD>org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler</DD> | |
</DL> | |
<HR> | |
<DL> | |
<DT><PRE>public class <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.41"><B>StylesheetPIHandler</B></A><DT>extends org.xml.sax.helpers.DefaultHandler</DL> | |
</PRE> | |
<P> | |
Search for the xml-stylesheet processing instructions in an XML document. | |
<P> | |
<P> | |
<DL> | |
<DT><B>See Also:</B><DD><a href="http://www.w3.org/TR/xml-stylesheet/">Associating Style Sheets with XML documents, Version 1.0</a></DL> | |
<HR> | |
<P> | |
<!-- =========== FIELD SUMMARY =========== --> | |
<A NAME="field_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Field Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#m_baseID">m_baseID</A></B></CODE> | |
<BR> | |
The baseID of the document being processed.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#m_charset">m_charset</A></B></CODE> | |
<BR> | |
The desired character set criteria.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#m_media">m_media</A></B></CODE> | |
<BR> | |
The desired media criteria.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) java.util.Vector</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#m_stylesheets">m_stylesheets</A></B></CODE> | |
<BR> | |
A list of SAXSource objects that match the criteria.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#m_title">m_title</A></B></CODE> | |
<BR> | |
The desired title criteria.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>(package private) javax.xml.transform.URIResolver</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#m_uriResolver">m_uriResolver</A></B></CODE> | |
<BR> | |
The object that implements the URIResolver interface, | |
or null.</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> | |
<A NAME="constructor_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Constructor Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#StylesheetPIHandler(java.lang.String, java.lang.String, java.lang.String, java.lang.String)">StylesheetPIHandler</A></B>(java.lang.String baseID, | |
java.lang.String media, | |
java.lang.String title, | |
java.lang.String charset)</CODE> | |
<BR> | |
Construct a StylesheetPIHandler instance that will search | |
for xml-stylesheet PIs based on the given criteria.</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ========== METHOD SUMMARY =========== --> | |
<A NAME="method_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Method Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> javax.xml.transform.Source</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#getAssociatedStylesheet()">getAssociatedStylesheet</A></B>()</CODE> | |
<BR> | |
Return the last stylesheet found that match the constraints.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> java.lang.String</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#getBaseId()">getBaseId</A></B>()</CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> javax.xml.transform.URIResolver</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#getURIResolver()">getURIResolver</A></B>()</CODE> | |
<BR> | |
Get the object that will be used to resolve URIs in href | |
in xml-stylesheet processing instruction.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#processingInstruction(java.lang.String, java.lang.String)">processingInstruction</A></B>(java.lang.String target, | |
java.lang.String data)</CODE> | |
<BR> | |
Handle the xml-stylesheet processing instruction.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#setBaseId(java.lang.String)">setBaseId</A></B>(java.lang.String baseId)</CODE> | |
<BR> | |
Added additional getter and setter methods for the Base Id | |
to fix bugzilla bug 24187</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#setURIResolver(javax.xml.transform.URIResolver)">setURIResolver</A></B>(javax.xml.transform.URIResolver resolver)</CODE> | |
<BR> | |
Get the object that will be used to resolve URIs in href | |
in xml-stylesheet processing instruction.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../org/apache/xml/utils/StylesheetPIHandler.html#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)">startElement</A></B>(java.lang.String namespaceURI, | |
java.lang.String localName, | |
java.lang.String qName, | |
org.xml.sax.Attributes atts)</CODE> | |
<BR> | |
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.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_org.xml.sax.helpers.DefaultHandler"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class org.xml.sax.helpers.DefaultHandler</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning</CODE></TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<P> | |
<!-- ============ FIELD DETAIL =========== --> | |
<A NAME="field_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Field Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="m_baseID"><!-- --></A><H3> | |
m_baseID</H3> | |
<PRE> | |
java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.44"><B>m_baseID</B></A></PRE> | |
<DL> | |
<DD>The baseID of the document being processed. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="m_media"><!-- --></A><H3> | |
m_media</H3> | |
<PRE> | |
java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.47"><B>m_media</B></A></PRE> | |
<DL> | |
<DD>The desired media criteria. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="m_title"><!-- --></A><H3> | |
m_title</H3> | |
<PRE> | |
java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.50"><B>m_title</B></A></PRE> | |
<DL> | |
<DD>The desired title criteria. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="m_charset"><!-- --></A><H3> | |
m_charset</H3> | |
<PRE> | |
java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.53"><B>m_charset</B></A></PRE> | |
<DL> | |
<DD>The desired character set criteria. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="m_stylesheets"><!-- --></A><H3> | |
m_stylesheets</H3> | |
<PRE> | |
java.util.Vector <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.56"><B>m_stylesheets</B></A></PRE> | |
<DL> | |
<DD>A list of SAXSource objects that match the criteria. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="m_uriResolver"><!-- --></A><H3> | |
m_uriResolver</H3> | |
<PRE> | |
javax.xml.transform.URIResolver <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.64"><B>m_uriResolver</B></A></PRE> | |
<DL> | |
<DD>The object that implements the URIResolver interface, | |
or null. | |
<P> | |
<DL> | |
</DL> | |
</DL> | |
<!-- ========= CONSTRUCTOR DETAIL ======== --> | |
<A NAME="constructor_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Constructor Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="StylesheetPIHandler(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> | |
StylesheetPIHandler</H3> | |
<PRE> | |
public <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.99"><B>StylesheetPIHandler</B></A>(java.lang.String baseID, | |
java.lang.String media, | |
java.lang.String title, | |
java.lang.String charset)</PRE> | |
<DL> | |
<DD>Construct a StylesheetPIHandler instance that will search | |
for xml-stylesheet PIs based on the given criteria. | |
<P> | |
<DL> | |
<DT><B>Parameters:</B><DD><CODE>baseID</CODE> - The base ID of the XML document, needed to resolve | |
relative IDs.<DD><CODE>media</CODE> - The desired media criteria.<DD><CODE>title</CODE> - The desired title criteria.<DD><CODE>charset</CODE> - The desired character set criteria.</DL> | |
</DL> | |
<!-- ============ METHOD DETAIL ========== --> | |
<A NAME="method_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Method Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="setURIResolver(javax.xml.transform.URIResolver)"><!-- --></A><H3> | |
setURIResolver</H3> | |
<PRE> | |
public void <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.73"><B>setURIResolver</B></A>(javax.xml.transform.URIResolver resolver)</PRE> | |
<DL> | |
<DD>Get the object that will be used to resolve URIs in href | |
in xml-stylesheet processing instruction. | |
<P> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>resolver</CODE> - An object that implements the URIResolver interface, | |
or null.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getURIResolver()"><!-- --></A><H3> | |
getURIResolver</H3> | |
<PRE> | |
public javax.xml.transform.URIResolver <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.84"><B>getURIResolver</B></A>()</PRE> | |
<DL> | |
<DD>Get the object that will be used to resolve URIs in href | |
in xml-stylesheet processing instruction. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>The URIResolver that was set with setURIResolver.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getAssociatedStylesheet()"><!-- --></A><H3> | |
getAssociatedStylesheet</H3> | |
<PRE> | |
public javax.xml.transform.Source <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.115"><B>getAssociatedStylesheet</B></A>()</PRE> | |
<DL> | |
<DD>Return the last stylesheet found that match the constraints. | |
<P> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>Source object that references the last stylesheet reference | |
that matches the constraints.</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="processingInstruction(java.lang.String, java.lang.String)"><!-- --></A><H3> | |
processingInstruction</H3> | |
<PRE> | |
public void <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.140"><B>processingInstruction</B></A>(java.lang.String target, | |
java.lang.String data) | |
throws org.xml.sax.SAXException</PRE> | |
<DL> | |
<DD>Handle the xml-stylesheet processing instruction. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>processingInstruction</CODE> in interface <CODE>org.xml.sax.ContentHandler</CODE><DT><B>Overrides:</B><DD><CODE>processingInstruction</CODE> in class <CODE>org.xml.sax.helpers.DefaultHandler</CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>target</CODE> - The processing instruction target.<DD><CODE>data</CODE> - The processing instruction data, or null if | |
none is supplied. | |
<DT><B>Throws:</B> | |
<DD><CODE>org.xml.sax.SAXException</CODE> - Any SAX exception, possibly | |
wrapping another exception.<DT><B>See Also:</B><DD><CODE>ContentHandler.processingInstruction(java.lang.String, java.lang.String)</CODE>, | |
<a href="http://www.w3.org/TR/xml-stylesheet/">Associating Style Sheets with XML documents, Version 1.0</a></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)"><!-- --></A><H3> | |
startElement</H3> | |
<PRE> | |
public void <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.320"><B>startElement</B></A>(java.lang.String namespaceURI, | |
java.lang.String localName, | |
java.lang.String qName, | |
org.xml.sax.Attributes atts) | |
throws org.xml.sax.SAXException</PRE> | |
<DL> | |
<DD>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. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>startElement</CODE> in interface <CODE>org.xml.sax.ContentHandler</CODE><DT><B>Overrides:</B><DD><CODE>startElement</CODE> in class <CODE>org.xml.sax.helpers.DefaultHandler</CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - The Namespace URI, or an empty string.<DD><CODE>localName</CODE> - The local name (without prefix), or empty string if not namespace processing.<DD><CODE>qName</CODE> - The qualified name (with prefix).<DD><CODE>atts</CODE> - The specified or defaulted attributes. | |
<DT><B>Throws:</B> | |
<DD><CODE><A HREF="../../../../org/apache/xml/utils/StopParseException.html" title="class in org.apache.xml.utils">StopParseException</A></CODE> - since there can be no valid xml-stylesheet processing | |
instructions past the first element. | |
<DD><CODE>org.xml.sax.SAXException</CODE></DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="setBaseId(java.lang.String)"><!-- --></A><H3> | |
setBaseId</H3> | |
<PRE> | |
public void <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.332"><B>setBaseId</B></A>(java.lang.String baseId)</PRE> | |
<DL> | |
<DD>Added additional getter and setter methods for the Base Id | |
to fix bugzilla bug 24187 | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="getBaseId()"><!-- --></A><H3> | |
getBaseId</H3> | |
<PRE> | |
public java.lang.String <A HREF="../../../../src-html/org/apache/xml/utils/StylesheetPIHandler.html#line.336"><B>getBaseId</B></A>()</PRE> | |
<DL> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<!-- ========= END OF CLASS DATA ========= --> | |
<HR> | |
<!-- ======= START OF BOTTOM NAVBAR ====== --> | |
<A NAME="navbar_bottom"><!-- --></A> | |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_bottom_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StylesheetPIHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../org/apache/xml/utils/StringVector.html" title="class in org.apache.xml.utils"><B>PREV CLASS</B></A> | |
<A HREF="../../../../org/apache/xml/utils/SuballocatedByteVector.html" title="class in org.apache.xml.utils"><B>NEXT CLASS</B></A></FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../index.html?org/apache/xml/utils/StylesheetPIHandler.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="StylesheetPIHandler.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_bottom"></A> | |
<!-- ======== END OF BOTTOM NAVBAR ======= --> | |
<HR> | |
</BODY> | |
</HTML> |