[Python-checkins] CVS: python/dist/src/Doc/lib libxmllib.tex,1.24,1.25
Fred L. Drake
python-dev@python.org
Fri, 11 Aug 2000 13:34:30 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv17990/lib
Modified Files:
libxmllib.tex
Log Message:
Some minor clarifications and added some index entries.
Index: libxmllib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libxmllib.tex,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** libxmllib.tex 2000/07/16 19:01:10 1.24
--- libxmllib.tex 2000/08/11 20:34:27 1.25
***************
*** 102,110 ****
\begin{methoddesc}{handle_doctype}{tag, pubid, syslit, data}
! This method is called when the \samp{<!DOCTYPE...>} tag is processed.
! The arguments are the name of the root element, the Formal Public
! Identifier (or \code{None} if not specified), the system identifier,
! and the uninterpreted contents of the internal DTD subset as a string
! (or \code{None} if not present).
\end{methoddesc}
--- 102,111 ----
\begin{methoddesc}{handle_doctype}{tag, pubid, syslit, data}
! This\index{DOCTYPE declaration} method is called when the
! \samp{<!DOCTYPE...>} declaration is processed. The arguments are the
! tag name of the root element, the Formal Public\index{Formal Public
! Identifier} Identifier (or \code{None} if not specified), the system
! identifier, and the uninterpreted contents of the internal DTD subset
! as a string (or \code{None} if not present).
\end{methoddesc}
***************
*** 112,126 ****
This method is called to handle start tags for which a start tag
handler is defined in the instance variable \member{elements}. The
! \var{tag} argument is the name of the tag, and the \var{method}
! argument is the function (method) which should be used to support semantic
! interpretation of the start tag. The \var{attributes} argument is a
! dictionary of attributes, the key being the \var{name} and the value
! being the \var{value} of the attribute found inside the tag's
! \code{<>} brackets. Character and entity references in the
! \var{value} have been interpreted. For instance, for the start tag
! \code{<A HREF="http://www.cwi.nl/">}, this method would be called as
! \code{handle_starttag('A', self.elements['A'][0], \{'HREF': 'http://www.cwi.nl/'\})}.
! The base implementation simply calls \var{method} with \var{attributes}
! as the only argument.
\end{methoddesc}
--- 113,127 ----
This method is called to handle start tags for which a start tag
handler is defined in the instance variable \member{elements}. The
! \var{tag} argument is the name of the tag, and the
! \var{method} argument is the function (method) which should be used to
! support semantic interpretation of the start tag. The
! \var{attributes} argument is a dictionary of attributes, the key being
! the \var{name} and the value being the \var{value} of the attribute
! found inside the tag's \code{<>} brackets. Character and entity
! references in the \var{value} have been interpreted. For instance,
! for the start tag \code{<A HREF="http://www.cwi.nl/">}, this method
! would be called as \code{handle_starttag('A', self.elements['A'][0],
! \{'HREF': 'http://www.cwi.nl/'\})}. The base implementation simply
! calls \var{method} with \var{attributes} as the only argument.
\end{methoddesc}
***************
*** 188,195 ****
\var{data} argument is a string containing the text between the
\samp{<!} and \samp{>} delimiters, but not the delimiters
! themselves. For example, the entity \samp{<!ENTITY text>} will
! cause this method to be called with the argument \code{'ENTITY text'}. The
! default method does nothing. Note that \samp{<!DOCTYPE ...>} is
! handled separately if it is located at the start of the document.
\end{methoddesc}
--- 189,197 ----
\var{data} argument is a string containing the text between the
\samp{<!} and \samp{>} delimiters, but not the delimiters
! themselves. For example, the \index{ENTITY declaration}entity
! declaration \samp{<!ENTITY text>} will cause this method to be called
! with the argument \code{'ENTITY text'}. The default method does
! nothing. Note that \samp{<!DOCTYPE ...>} is handled separately if it
! is located at the start of the document.
\end{methoddesc}