|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/xslt/ |
Upload File : |
mō
Gėm>c @ s8 d Z d k Z d k Z d k Z d f d YZ d S( s
Components for reading Text files from a SAX-like producer.
WWW: http://4suite.com/4DOM e-mail: support@4suite.com
Copyright (c) 1999-2000 Fourthought Inc, USA. All Rights Reserved.
See http://4suite.com/COPYRIGHT for license and copyright information
Nt
TextGeneratorc B sS t Z d d Z d Z d Z d Z d Z d Z d Z d Z RS(
Ni c C s
d | _ d S( Nt ( t selft _TextGenerator__currText( R t keepAllWs( ( t9 /usr/lib/python2.4/site-packages/_xmlplus/xslt/TextSax.pyt __init__ s c C s | i S( N( R R ( R ( ( R t getRootNode s c C sW d | } x, | i D] } | d | | | f } q W| d } | i | | _ d S( Nt <s %s = %s s >
( t namet stt attribst keyst attrR R ( R R R R
R
( ( R t startElement s
c C s d | } | i | | _ d S( Ns </%s>( R R
R R ( R R R
( ( R t
endElement s
c C s- | i o | i | | | | !| _ n d S( s
If 'keepAllWs' permits, add ignorable white-space as a text node.
Remember that a Document node cannot contain text nodes directly.
If the white-space occurs outside the root element, there is no place
for it in the DOM and it must be discarded.
N( R t _TextGenerator__keepAllWsR t cht startt length( R R R R ( ( R t ignorableWhitespace$ s
c C s | i | | | | !| _ d S( N( R R R R R ( R R R R ( ( R t
characters. s c C s
| d S( N( t exception( R R ( ( R t error6 s c C s
| d S( N( R ( R R ( ( R t
fatalError9 s (
t __name__t
__module__R R R R R R R R ( ( ( R R s
( t __doc__t syst stringt cStringIOR ( R R R R ( ( R t ?
s