Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
_xmlplus
/
sax
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/_xmlplus/sax/writer.pyo
m xNc @ s3 d Z d Z d k Z d k Z d k Z d k l Z d Z d f d YZ d e f d YZ d e f d YZ d e f d YZ d f d YZ d e i i i i f d YZ d e f d YZ d e f d YZ d e f d YZ d f d YZ d e f d YZ d S( s SAX document handlers that support output generation of XML, SGML, and XHTML. This module provides three different groups of objects: the actual SAX document handlers that drive the output, DTD information containers, and syntax descriptors (of limited public use in most cases). Output Drivers -------------- The output drivers conform to the SAX C<DocumentHandler> protocol. They can be used anywhere a C<DocumentHandler> is used. Two drivers are provided: a `basic' driver which creates a fairly minimal output without much intelligence, and a `pretty-printing' driver that performs pretty-printing with nice indentation and the like. Both can optionally make use of DTD information and syntax objects. DTD Information Containers -------------------------- Each DTD information object provides an attribute C<syntax> which describes the expected output syntax; an alternate can be provided to the output drivers if desired. Syntax Descriptors ------------------ Syntax descriptor objects provide several attributes which describe the various lexical components of XML & SGML markup. The attributes have names that reflect the shorthand notation from the SGML world, but the values are strings which give the appropriate characters for the markup language being described. The one addition is the C<empty_stagc> attribute which should be used to end the start tag of elements which have no content. This is needed to properly support XML and XHTML. s $Revision: 1.9 $N( s escapeiJ t Syntaxc B sw t Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z RS( Ns --s &#t ;t [t ]t &t "s "t 's <!t >s ]]s <?t <s </t =c C s! | i t j o t d n d S( Ns% Syntax must be subclassed to be used!( t selft __class__R t RuntimeError( R ( ( t7 /usr/lib/python2.4/site-packages/_xmlplus/sax/writer.pyt __init__K s ( t __name__t __module__t comt crot refct dsot dsct erot litt lit_quotedt litat mdot mdct msct piot stagot etagot tagct viR ( ( ( R R 8 s$ t SGMLSyntaxc B s t Z d Z d Z d Z RS( NR t /( R R t empty_stagct pict net( ( ( R R"