[Python-checkins] CVS: python/dist/src/Doc/lib xmlsaxhandler.tex,1.5,1.6
Fred L. Drake
fdrake@users.sourceforge.net
Tue, 06 Nov 2001 14:13:21 -0800
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv17659/lib
Modified Files:
xmlsaxhandler.tex
Log Message:
A variety of small cleanups, including one to avoid a margin overrun in the
PDF version.
Index: xmlsaxhandler.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/xmlsaxhandler.tex,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** xmlsaxhandler.tex 2001/10/20 04:24:09 1.5
--- xmlsaxhandler.tex 2001/11/06 22:13:19 1.6
***************
*** 18,47 ****
methods get default implementations.
! \begin{classdesc}{ContentHandler}{}
This is the main callback interface in SAX, and the one most
important to applications. The order of events in this interface
mirrors the order of the information in the document.
! \end{classdesc}
! \begin{classdesc}{DTDHandler}{}
Handle DTD events.
This interface specifies only those DTD events required for basic
parsing (unparsed entities and attributes).
! \end{classdesc}
! \begin{classdesc}{EntityResolver}{}
Basic interface for resolving entities. If you create an object
implementing this interface, then register the object with your
Parser, the parser will call the method in your object to resolve all
external entities.
! \end{classdesc}
! \begin{classdesc}{ErrorHandler}{}
Interface used by the parser to present error and warning messages
to the application. The methods of this object control whether errors
are immediately converted to exceptions or are handled in some other
way.
! \end{classdesc}
In addition to these classes, \module{xml.sax.handler} provides
--- 18,47 ----
methods get default implementations.
! \begin{classdesc*}{ContentHandler}
This is the main callback interface in SAX, and the one most
important to applications. The order of events in this interface
mirrors the order of the information in the document.
! \end{classdesc*}
! \begin{classdesc*}{DTDHandler}
Handle DTD events.
This interface specifies only those DTD events required for basic
parsing (unparsed entities and attributes).
! \end{classdesc*}
! \begin{classdesc*}{EntityResolver}
Basic interface for resolving entities. If you create an object
implementing this interface, then register the object with your
Parser, the parser will call the method in your object to resolve all
external entities.
! \end{classdesc*}
! \begin{classdesc*}{ErrorHandler}
Interface used by the parser to present error and warning messages
to the application. The methods of this object control whether errors
are immediately converted to exceptions or are handled in some other
way.
! \end{classdesc*}
In addition to these classes, \module{xml.sax.handler} provides
***************
*** 53,57 ****
false: Optionally do not perform Namespace processing
(implies namespace-prefixes).\\
! access: (parsing) read-only; (not parsing) read/write\\
\end{datadesc}
--- 53,57 ----
false: Optionally do not perform Namespace processing
(implies namespace-prefixes).\\
! access: (parsing) read-only; (not parsing) read/write
\end{datadesc}
***************
*** 188,193 ****
Namespace processing: the SAX XML reader will automatically replace
prefixes for element and attribute names when the
! \code{http://xml.org/sax/features/namespaces} feature is true (the
! default).
%% XXX This is not really the default, is it? MvL
--- 188,192 ----
Namespace processing: the SAX XML reader will automatically replace
prefixes for element and attribute names when the
! \code{feature_namespaces} feature is enabled (the default).
%% XXX This is not really the default, is it? MvL
***************
*** 241,246 ****
Parsers may set the \var{qname} parameter to \code{None}, unless the
! \code{http://xml.org/sax/features/namespace-prefixes} feature is
! activated.
\end{methoddesc}
--- 240,244 ----
Parsers may set the \var{qname} parameter to \code{None}, unless the
! \code{feature_namespace_prefixes} feature is activated.
\end{methoddesc}
***************
*** 249,253 ****
The \var{name} parameter contains the name of the element type, just
! as with the startElementNS event, likewise the \var{qname} parameter.
\end{methoddesc}
--- 247,252 ----
The \var{name} parameter contains the name of the element type, just
! as with the \method{startElementNS()} method, likewise the
! \var{qname} parameter.
\end{methoddesc}
***************
*** 308,314 ****
declared in an external DTD subset). All processors may skip
external entities, depending on the values of the
! \code{http://xml.org/sax/features/external-general-entities} and the
! \code{http://xml.org/sax/features/external-parameter-entities}
! properties.
\end{methoddesc}
--- 307,312 ----
declared in an external DTD subset). All processors may skip
external entities, depending on the values of the
! \code{feature_external_ges} and the
! \code{feature_external_pes} properties.
\end{methoddesc}