From mark@easymailings.com Wed Jan 1 23:15:00 2003 From: mark@easymailings.com (Mark Bucciarelli) Date: Wed, 1 Jan 2003 18:15:00 -0500 Subject: [XML-SIG] SimpleXMLRPCServer Question Message-ID: <200301011815.00649.mark@easymailings.com> I'm trying to use the pycrypto module to pass encrypted login information= to a=20 SimpleXMLRPCServer, but I'm getting a 500 Internal Error. I suspect it's= =20 either a bug in the BaseHTTPServer or the cipertext argument contains som= e=20 characters that aren't allowed. I think the 500 error is triggered because the statement data =3D self.rfile.read(int(self.headers["content-length"])) in the SimpleXMLRPCRequestHandler throws an exception. I've stubbed the server login function to simply return "FAILED" no matte= r=20 what is passed in. When I call server.login("a"), it returns "FAILED" bu= t=20 when I pass in cipher.encrypt("a 16 byte string") I get a 500 error. So, is there some limit on the characters I can pass to an XMLRPC method? Thanks! Mark From ninti@ninti.com Thu Jan 2 07:47:44 2003 From: ninti@ninti.com (Michael Hall) Date: Thu, 2 Jan 2003 18:47:44 +1100 Subject: [XML-SIG] 4XSLT install problem Message-ID: <1041493664.3e13eea05f8b9@anchor.net.au> G'day folks: I have just uninstalled the default 4Suite RPM that came with RedHat 7.2 (version 0.11). It was working just fine, but as I'm trying to write an article about using open source XSLT processors (xsltproc,Sablotron,4XSLT) on the command line for batch transformations, I thought I'd better upgrade to the latest version. I downloaded the source for 4Suite 0.12.0a3 and installed it using python 2.1.1 to run setup.py (don't know if that is significant, but my RH 7.2 box also has python 1.5.2 installed). The install appeared to go fine, but now 4XSLT can't be invoked from the command line as before. I get a "4xslt: command not found" message, although if I run "locate 4xslt", I am informed that it is located in /usr/lib/python2.1/site-packages/Ft/Share/Bin/4xslt /usr/lib/python2.1/site-packages/Ft/Xml/Xslt/_4xslt.py /usr/lib/python2.1/site-packages/Ft/Xml/Xslt/_4xslt.pyc What am I doing wrong? Is this expected behaviour for the latest version? Is this just a PATH issue? PS: While I believe that Python is a great language (I'm coming from PHP), I find all the changes between Python1, Python2, and different versions of PyXML and 4Suite etc to be very confusing. Is there somewhere that I can find a coherent 'road map' to navigate through it all? Many books and tutorials on Python/XML appear to contain outdated information and broken examples that no longer work. TIA Mick -- ---------------------------------------------------- MICHAEL HALL Web Development Officer Batchelor Institute of Indigenous Tertiary Education W: mick.hall@nt.gov.au (08) 8951 8352 H: ninti@ninti.com (08) 8953 1442 ---------------------------------------------------- From martin@v.loewis.de Thu Jan 2 08:03:06 2003 From: martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) Date: 02 Jan 2003 09:03:06 +0100 Subject: [XML-SIG] SimpleXMLRPCServer Question In-Reply-To: <200301011815.00649.mark@easymailings.com> References: <200301011815.00649.mark@easymailings.com> Message-ID: Mark Bucciarelli writes: > I think the 500 error is triggered because the statement > > data = self.rfile.read(int(self.headers["content-length"])) > > in the SimpleXMLRPCRequestHandler throws an exception. Care to report what that exception is? > So, is there some limit on the characters I can pass to an XMLRPC method? At a minimum, the bytes in the message must form valid characters according to the declared encoding. Remember that the default encoding of XML is UTF-8. Also remember that XML does not support binary data, and that XML-RPC supports the base64 element for that. HTH, Martin From uche.ogbuji@fourthought.com Thu Jan 2 15:25:59 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: Thu, 02 Jan 2003 08:25:59 -0700 Subject: [XML-SIG] 4XSLT install problem In-Reply-To: Message from Michael Hall of "Thu, 02 Jan 2003 18:47:44 +1100." <1041493664.3e13eea05f8b9@anchor.net.au> Message-ID: > G'day folks: > > I have just uninstalled the default 4Suite RPM that came with RedHat 7.2 > (version 0.11). It was working just fine, but as I'm trying to write an > article about using open source XSLT processors (xsltproc,Sablotron,4XSLT) on > the command line for batch transformations, I thought I'd better upgrade to > the latest version. Very good thought, I'd say. > I downloaded the source for 4Suite 0.12.0a3 and installed it using python > 2.1.1 to run setup.py (don't know if that is significant, but my RH 7.2 box > also has python 1.5.2 installed). > > The install appeared to go fine, but now 4XSLT can't be invoked from the > command line as before. I get a "4xslt: command not found" message, although > if I run "locate 4xslt", I am informed that it is located in > > /usr/lib/python2.1/site-packages/Ft/Share/Bin/4xslt > /usr/lib/python2.1/site-packages/Ft/Xml/Xslt/_4xslt.py > /usr/lib/python2.1/site-packages/Ft/Xml/Xslt/_4xslt.pyc > > What am I doing wrong? Is this expected behaviour for the latest version? Is > this just a PATH issue? It's just a path issue. We had some discussion about this and decided that a *python* distutils (which are used to run "setup.py" is not the place to be intruding on the user's paths, or standard locations such as /usr/local/bin. We decided to leave that to *distribution-specific* installers, which we have not had time to prepare :-). It's not a trivial matter as one should probably really use autoconf to find out the appropriate place for the executables and all that, and I'm not sure on any clear science on mixing autoconf with distutils. Actually, I'm not sure there's any clear science on autoconf at all ;-) Anyway, the upshot of this is that we place the commands where you found 'em, and we advise people to copy or link those into locations on their paths, or to add that directory to their path. See, for instance, section 4.3 of our UNIX install guide: http://4suite.org/docs/howto/UNIX.xml I would be grateful for any thoughts from folks about the best ways to make things even more convenient here, without falling into too much platform-specific madness. > PS: While I believe that Python is a great language (I'm coming from PHP), I > find all the changes between Python1, Python2, and different versions of PyXML > and 4Suite etc to be very confusing. Is there somewhere that I can find a > coherent 'road map' to navigate through it all? Many books and tutorials on > Python/XML appear to contain outdated information and broken examples that no > longer work. I think I have your antidote. Start here: http://uche.ogbuji.net/tech/akara/pyxml/ Some short-cuts for you based on your message: http://uche.ogbuji.net/tech/akara/pyxml/choosing-software/ http://uche.ogbuji.net/tech/akara/pyxml/installation/ http://uche.ogbuji.net/tech/akara/pyxml/python-xslt/ The install guides on the 4Suite Web site are also up to date, and to be fair, they held the answer to your particular question: http://4suite.org See also my Python/XML column on O'Reilly: http://www.xml.com/pub/q/pyxml In which all discussion is up to date. If you bought the O'Reilly Python & XML book, I devoted my most recent article in that column to updates of discussion and examples in the book http://www.xml.com/pub/a/2002/12/11/py-xml.html See also http://uche.ogbuji.net/tech/akara/pyxml/ I intend these Akara guides to be authoritative information entry points for all matters Python/XML, though I focus on PyXML and 4Suite for now. I do carefully maintain these pages to be up to date. I also intens that they are sources for more formal documentation ads development continues. Certainly, if you have any further problems, just ask. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com A Python & XML Companion - http://www.xml.com/pub/a/2002/12/11/py-xml.html XML class warfare - http://www.adtmag.com/article.asp?id=6965 MusicBrainz metadata - http://www-106.ibm.com/developerworks/xml/library/x-thi nk14.html From uche.ogbuji@fourthought.com Thu Jan 2 17:33:01 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: 02 Jan 2003 10:33:01 -0700 Subject: [XML-SIG] ANN: 4Suite tutorial part 5: The Repository Features Message-ID: <1041528779.21272.138.camel@localhost.localdomain> http://www-105.ibm.com/developerworks/education.nsf/xml-onlinecourse-bytitle/CD1A8865668D9A2E86256C910062D445?OpenDocument or more directly https://www6.software.ibm.com/reg/devworks/dw-x4suite5-i/ Free registration required. If you're already registered on IBM dW, you can just go to: https://www6.software.ibm.com/developerworks/education/x-4suite5/ This tutorial, the fifth in a series, shows Python developers how to use the popular open-source 4Suite toolkit for XML processing to create a Web repository application. The authors, 4Suite's creators Uche and Chimezie Ogbuji, walk you through the process of creating a Web application that allows users to manage a database of software descriptions and related vendors using a standard XML format. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com A Python & XML Companion - http://www.xml.com/pub/a/2002/12/11/py-xml.html XML class warfare - http://www.adtmag.com/article.asp?id=6965 MusicBrainz metadata - http://www-106.ibm.com/developerworks/xml/library/x-think14.html From boisdet@csit.fsu.edu Thu Jan 2 20:52:01 2003 From: boisdet@csit.fsu.edu (Jean-Frederic Boisdet) Date: Thu, 2 Jan 2003 12:52:01 -0800 Subject: [XML-SIG] minidom - PyUnicodeUCS4_Decode Message-ID: <002601c2b2a0$ccc3ca10$3286ae90@wkkxt10> This is a multi-part message in MIME format. ------=_NextPart_000_0027_01C2B25D.BEA08A10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have built pyXML 0.8.1 on my RedHat 7.3 by doing=20 python setup.py build =20 Then I copied _xmlplus in the .resources directory you can see below and symlinked it as xml/ The filesystem is on a debian. Both the RedHat and the Debian have Python 2.2 =20 When I try to parse a file on the RedHat, everything works perfectly. When I try it on the Debian, I got this message. =20 =20 File "./.resources/theXMLParser.py", line 9, in __init__ self.root =3D minidom.parse(file) File "./.resources/xml/dom/minidom.py", line 1594, in parse from xml.dom import expatbuilder File "./.resources/xml/dom/expatbuilder.py", line 32, in ? from xml.parsers import expat File "./.resources/xml/parsers/expat.py", line 4, in ? from pyexpat import * ImportError: ./.resources/xml/parsers/pyexpat.so: undefined symbol: PyUnicodeUCS4_Decode =20 I tried to rebuild PyXML on the Debian, I got this error message: =20 ~Python/PyXML-0.8.1/> python setup.py build Traceback (most recent call last): File "setup.py", line 9, in ? from distutils.core import setup, Extension ImportError: No module named distutils.core Anything known to go wrong with debians ? =20 Thanks and Happy New Year, =20 Jean-Frederic Boisdet =20 There are two rules for ultimate success in life. 1. Never tell everything you know.=20 J e a n - F r =E9 d =E9 r i c =20 ------=_NextPart_000_0027_01C2B25D.BEA08A10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
I have = built pyXML=20 0.8.1 on my RedHat 7.3 by doing
python setup.py build
 
Then I = copied=20 _xmlplus in the .resources directory you can see below and symlinked it = as=20 xml/
The = filesystem is on=20 a debian. Both the RedHat and the Debian have Python = 2.2
 
When I = try to parse=20 a file on the RedHat, everything works perfectly.
When I = try it on the=20 Debian, I got this message.
 
 
  = File=20 "./.resources/theXMLParser.py", line 9, in = __init__
   =20 self.root =3D minidom.parse(file)
  File=20 "./.resources/xml/dom/minidom.py", line 1594, in = parse
   =20 from xml.dom import expatbuilder
  File=20 "./.resources/xml/dom/expatbuilder.py", line 32, in = ?
    from=20 xml.parsers import expat
  File = "./.resources/xml/parsers/expat.py",=20 line 4, in ?
    from pyexpat import *
ImportError: = ./.resources/xml/parsers/pyexpat.so: undefined symbol:=20 PyUnicodeUCS4_Decode
 
I = tried to rebuild=20 PyXML on the Debian, I got this error message:
 
~Python/PyXML-0.8.1/> python setup.py = build
Traceback (most recent call last):
  File "setup.py", = line 9,=20 in ?
    from distutils.core import setup,=20 Extension
ImportError: No module named = distutils.core
Anything known to go=20 wrong with debians ?
 
Thanks = and Happy New=20 Year,
 
Jean-Frederic=20 Boisdet
 
There are two rules for ultimate = success in=20 life.
1. Never tell everything you know.=20

J e a n - F r =E9 d =E9 r i c

 
------=_NextPart_000_0027_01C2B25D.BEA08A10-- From martin@v.loewis.de Thu Jan 2 18:09:24 2003 From: martin@v.loewis.de (=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=) Date: Thu, 02 Jan 2003 19:09:24 +0100 Subject: [XML-SIG] minidom - PyUnicodeUCS4_Decode In-Reply-To: <002601c2b2a0$ccc3ca10$3286ae90@wkkxt10> References: <002601c2b2a0$ccc3ca10$3286ae90@wkkxt10> Message-ID: <3E148054.4020602@v.loewis.de> Jean-Frederic Boisdet wrote: > Anything known to go wrong with debians ? There is nothing wrong with Debian. Python supports two incompatible modes of operation for Unicode, UCS2 (the default), and UCS4. Debian uses the default, Redhat uses UCS4. You need to recompile the extension for UCS-2 mode (i.e. using a Debian installation); this would fix the undefined symbol: PyUnicodeUCS4_Decode problem. As for not finding distutils.core: You need to install python2.2-dev. Regards, Martin From mark@easymailings.com Thu Jan 2 19:20:41 2003 From: mark@easymailings.com (Mark Bucciarelli) Date: Thu, 2 Jan 2003 14:20:41 -0500 Subject: [XML-SIG] SimpleXMLRPCServer Question In-Reply-To: References: <200301011815.00649.mark@easymailings.com> Message-ID: <200301021420.42028.mark@easymailings.com> On Thursday 02 January 2003 3:03 am, Martin v. L=F6wis wrote: > Mark Bucciarelli writes: > > I think the 500 error is triggered because the statement > > > > data =3D self.rfile.read(int(self.headers["content-length"])) > > > > in the SimpleXMLRPCRequestHandler throws an exception. > > Care to report what that exception is? I don't know what it is. The SimpleXMLRPCRequestHandler code is: try: =09data =3D self.rfile.read(...) =09... except: =09# internal error, report as HTTP server error =09self.send_response(500) =09self.end_headers() Anyway, I think this is where the 500 comes from. [mark@pooh test]$ grep -l 'response(500)' /usr/lib/python2.2/*.py /usr/lib/python2.2/SimpleXMLRPCServer.py [mark@pooh test]$ > > So, is there some limit on the characters I can pass to an XMLRPC met= hod? > > At a minimum, the bytes in the message must form valid characters > according to the declared encoding. Remember that the default encoding > of XML is UTF-8. Also remember that XML does not support binary data, > and that XML-RPC supports the base64 element for that. Great, I expect xmlrpclib.binary() will work just fine. Thanks. Mark From mark@easymailings.com Fri Jan 3 03:21:03 2003 From: mark@easymailings.com (Mark Bucciarelli) Date: Thu, 2 Jan 2003 22:21:03 -0500 Subject: [XML-SIG] 20 second socket.addrinfo() delay in SimpleXMLRPCServer Message-ID: <200301022221.03990.mark@easymailings.com> I'm experiencing some strange behavior with the SimpleXMLRPCServer. I've= =20 traced it as far as I can go, and would appreciate suggestions on further= =20 debugging. The first strange behavior is that a simple echo function takes 20 second= s to=20 respond. I've traced this delay to the httplib.HTTPConnection class, whe= re=20 the call to socket.getaddrinfo() in the connect() routine is responsible = for=20 this entire delay. Based on my extensive Windows experience, I did manag= e to=20 make the error go away by rebooting my computer. ;) But it came back. := ( =20 Once back, it sticks around. How can I debug what's happening in the _socket.getaddrinfo() method? Is this a known problem with Python 2.2.1? GCC 3.2? RedHat 8.0? Linux=20 Kernel 2.4.18-14? Dell Inspirons? The other strange behavor occurs in the python interpreter. On occasion,= when=20 I type in a command like server =3D xmlrpclib.Server("http://localhost:80= 00")=20 or server.echo('test'), the memory usage for the interpreter spikes (up t= o=20 75%, per "top") stays there for around three minutes, at which point the=20 interpreter decides it's had enough and appends the string "Killed" and e= xits=20 back to the command prompt. =20 In the pre hari-kari period, I've seen the load average go as high as 7.8= =2E =20 Once in this state, I was able to duplicate this behavior four times in a= =20 row. When I restarted the xml rpc server, everything went back to workin= g=20 normally. I'm running RedHat 8.0 on a Dell Inspiron 4100, with 256M RAM. Python 2.2.1 (#1, Aug 30 2002, 12:15:30) [GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2 Mark From martin@v.loewis.de Fri Jan 3 08:26:22 2003 From: martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) Date: 03 Jan 2003 09:26:22 +0100 Subject: [XML-SIG] 20 second socket.addrinfo() delay in SimpleXMLRPCServer In-Reply-To: <200301022221.03990.mark@easymailings.com> References: <200301022221.03990.mark@easymailings.com> Message-ID: Mark Bucciarelli writes: > How can I debug what's happening in the _socket.getaddrinfo() method? You probably need to debug it on the C level. Most likely, you'll find that getaddrinfo jumps into the DNS resolver code of libc, at which point you can only debug it through recording the IP packets send by your machine. If you try to resolve the same host names interactively (e.g. by passing them to traceroute), does that work better? > Is this a known problem with Python 2.2.1? GCC 3.2? RedHat 8.0? Linux > Kernel 2.4.18-14? Dell Inspirons? Likely none of these, although 20s does ring a bell: On Linux, name lookups are cached through nscd, which is configured through nscd.conf, which usually has a line negative-time-to-live hosts 20 This says that negative lookups (host not found) stay 20s in the cache until they are revalidated. I'm at a loss as to why this would cause getaddrinfo to block for this timeout, though. > The other strange behavor occurs in the python interpreter. On > occasion, when I type in a command like server = > xmlrpclib.Server("http://localhost:8000") or server.echo('test'), > the memory usage for the interpreter spikes (up to 75%, per "top") > stays there for around three minutes, at which point the interpreter > decides it's had enough and appends the string "Killed" and exits > back to the command prompt. The "killed" likely occurs through OOM, the Linux out-of-memory killer. Linux, when it runs out of memory, choses an arbitrary victim process to kill. Now, the question would be why Python suddenly starts to consume so much memory. Without investigating your application, it is impossible to tell. Regards, Martin From mark@easymailings.com Fri Jan 3 14:23:32 2003 From: mark@easymailings.com (Mark Bucciarelli) Date: Fri, 3 Jan 2003 09:23:32 -0500 Subject: [XML-SIG] 20 second socket.addrinfo() delay in SimpleXMLRPCServer In-Reply-To: References: <200301022221.03990.mark@easymailings.com> Message-ID: <200301030923.32940.mark@easymailings.com> On Friday 03 January 2003 3:26 am, Martin v. L=F6wis wrote: > Mark Bucciarelli writes: > > How can I debug what's happening in the _socket.getaddrinfo() method? > > You probably need to debug it on the C level. Most likely, you'll find > that getaddrinfo jumps into the DNS resolver code of libc, at which > point you can only debug it through recording the IP packets send by > your machine. > > If you try to resolve the same host names interactively (e.g. by > passing them to traceroute), does that work better? The domain name is localhost. Traceroute returns immediately. However, = when=20 I was experiencing the 20s delay this morning, I tried using 127.0.0.1=20 instead of localhost, and voila--it returned without delay. So I guess=20 something is messed up with my host name lookup. Strange, I have a 127.0= =2E0.1=20 localhost entry in my /etc/hosts file. [...] > Likely none of these, although 20s does ring a bell: On Linux, name > lookups are cached through nscd, which is configured through > nscd.conf, which usually has a line > > =09negative-time-to-live=09hosts=09=0920 > > This says that negative lookups (host not found) stay 20s in the cache > until they are revalidated. I'm at a loss as to why this would cause > getaddrinfo to block for this timeout, though. I uncommented the log file and set debug level to 5 and restarted nscd. = Of=20 course right now, there is no delay :( and the log looks normal--at firs= t,=20 localhost is not in cache, and then a bit later, it is.=20 3035: handle_request: request received (Version =3D 2) 3035: GETHOSTBYNAMEv6 (localhost) 3035: Haven't found "6c6f:6361:6c68:6f73:7400:0:fa98:153e" in hosts cache= ! 3035: handle_request: request received (Version =3D 2) 3035: GETHOSTBYNAME (localhost) 3035: Haven't found "localhost" in hosts cache! 3035: handle_request: request received (Version =3D 2) 3035: GETHOSTBYADDR (127.0.0.1) 3035: Haven't found "127.0.0.1" in hosts cache! =2E.. 3034: handle_request: request received (Version =3D 2) 3034: GETHOSTBYNAMEv6 (localhost) 3034: handle_request: request received (Version =3D 2) 3034: GETHOSTBYNAME (localhost) 3034: handle_request: request received (Version =3D 2) 3034: GETHOSTBYADDR (127.0.0.1) [...] > Regards, > Martin Thanks so much for your help! Mark From mark@easymailings.com Fri Jan 3 15:16:27 2003 From: mark@easymailings.com (Mark Bucciarelli) Date: Fri, 3 Jan 2003 10:16:27 -0500 Subject: [XML-SIG] 20 second socket.addrinfo() delay in SimpleXMLRPCServer In-Reply-To: <3E15A5D9.1030409@v.loewis.de> References: <200301022221.03990.mark@easymailings.com> <200301030923.32940.mark@easymailings.com> <3E15A5D9.1030409@v.loewis.de> Message-ID: <200301031016.27365.mark@easymailings.com> On Friday 03 January 2003 10:01 am, Martin v. L=F6wis wrote: > Have you configured IPv6 interfaces for your system? It's the standard RedHat 8.0 setup. I have no experience with IPv6. > I would use glibcbug to report those nscd trace messages. Perhaps this > is just a bug in the trace code, which would be harmless. I'll wait a day or so to see if anyone else chimes in here, then I'll sub= mit a=20 bug report. It's two very simple python programs, so they should be able= to=20 duplicate it easily. My system has glibc-2.2.93-5. Turn on the nscd log and set debugging to 5. Start the server, and then = enter=20 the client code in the interpreter and you should see the same entries in= the=20 log file. Here's the server: import SimpleXMLRPCServer def echo(s): return s server =3D SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 8000)) server.register_function(echo) server.serve_forever() and here's the client code: Python 2.2.1 (#1, Aug 30 2002, 12:15:30) [GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import xmlrpclib >>> server =3D xmlrpclib.Server("http://localhost:8000") >>> server.echo("test") > Regards, > Martin Thanks again, Mark From martin@v.loewis.de Fri Jan 3 15:01:45 2003 From: martin@v.loewis.de (=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=) Date: Fri, 03 Jan 2003 16:01:45 +0100 Subject: [XML-SIG] 20 second socket.addrinfo() delay in SimpleXMLRPCServer In-Reply-To: <200301030923.32940.mark@easymailings.com> References: <200301022221.03990.mark@easymailings.com> <200301030923.32940.mark@easymailings.com> Message-ID: <3E15A5D9.1030409@v.loewis.de> Mark Bucciarelli wrote: > 3035: handle_request: request received (Version = 2) > 3035: GETHOSTBYNAMEv6 (localhost) > 3035: Haven't found "6c6f:6361:6c68:6f73:7400:0:fa98:153e" in hosts cache! Can you (or anybody else) explain these messages? It is not surprising that it tries an IPv6 lookup for localhost - this is, after all, the entire point of using getaddrinfo instead of plain gethostbyname. I'm surprised that it infers "6c6f:6361:6c68:6f73:7400:0:fa98:153e", though? Have you configured IPv6 interfaces for your system? Doing >>> s="6c6f63616c686f7374000000fa98153e" >>> s.decode("hex") 'localhost\x00\x00\x00\xfa\x98\x15>' reveals that something is seriously broken in namelookup: It somehow tries to interpret the byte string "localhost" (plus whatever data it then has in memory) as an IPv6 packed binary address????? That looks like a bug in the system's C library to me. It could be a bug in Python, also, but given that nscd correctly traces the request made to it, and given that nobody else has reported problems, I'd infer an nscd bug, or a bug in the nscd client code in the C library. I would use glibcbug to report those nscd trace messages. Perhaps this is just a bug in the trace code, which would be harmless. Regards, Martin From mark@easymailings.com Fri Jan 3 16:24:21 2003 From: mark@easymailings.com (Mark Bucciarelli) Date: Fri, 3 Jan 2003 11:24:21 -0500 Subject: [XML-SIG] 20 second socket.addrinfo() delay in SimpleXMLRPCServer In-Reply-To: <3E15A5D9.1030409@v.loewis.de> References: <200301022221.03990.mark@easymailings.com> <200301030923.32940.mark@easymailings.com> <3E15A5D9.1030409@v.loewis.de> Message-ID: <200301031124.21049.mark@easymailings.com> On Friday 03 January 2003 10:01 am, Martin v. L=F6wis wrote: > Mark Bucciarelli wrote: > > 3035: GETHOSTBYNAMEv6 (localhost) I started getting delays again, and by watching the /var/log/nscd.log wit= h=20 tail -f, I can see that the 20s delay occurs after the above entry is log= ged,=20 and before the following entries (which come very fast): 3740: handle_request: request received (Version =3D 2) 3740: GETHOSTBYNAME (localhost) 3740: handle_request: request received (Version =3D 2) 3740: GETHOSTBYADDR (127.0.0.1) Mark From uche.ogbuji@fourthought.com Sat Jan 4 06:26:39 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: Fri, 03 Jan 2003 23:26:39 -0700 Subject: [XML-SIG] py2exe and switching from PyXML 4Suite In-Reply-To: Message from Uche Ogbuji of "Sun, 15 Dec 2002 14:25:04 MST." Message-ID: > > > > > > Because you're such a nice guy, I'll ditch the tease for you :-) > > > > You can also do these much more easily using XPath... > > > > from Ft.Xml import XPath > > > > > > def getElementsByTagName(node,name) > > return XPath.evaluate(node,".//" + name) > > I think my generator approach would be faster, but this XPath approach has the > advantage of working in Python 2.0 and 2.1. Mine is 2.2+. Wow. Is it ever faster. I played with this some while working on my latest Python&XML column. Even in the smallest cases the generator approach is 4-5 times faster than the XPath approach. I tried on Bosak's old testament in XML (900KB XML file, getting all the 23145 v elements). The generator approach took about .82 seconds and the XPath approach took about 220 seconds. In other words, the generator approach was almost 300 times faster. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com A Python & XML Companion - http://www.xml.com/pub/a/2002/12/11/py-xml.html XML class warfare - http://www.adtmag.com/article.asp?id=6965 MusicBrainz metadata - http://www-106.ibm.com/developerworks/xml/library/x-thi nk14.html From pasky@ucw.cz Sat Jan 4 11:32:30 2003 From: pasky@ucw.cz (Petr Baudis) Date: Sat, 4 Jan 2003 12:32:30 +0100 Subject: [XML-SIG] XBEL support in ELinks-0.4.0 Message-ID: <20030104113230.GV22736@pasky.ji.cz> Hello, I'd like to notify you that ELinks-0.4.0+ (semipopular advanced text WWW browser (residing at http://elinks.or.cz/)) has built-in XBEL bookmarks support (altough not ideal, there's a little trouble with charsets yet) - it supports basic bookmarks operations (same as in the native format) and conversion from/to native ELinks' bookmarks format. Maybe you would like to include it in the "Supporting Software" section on XBEL's web page. Thanks, -- Petr "Pasky" Baudis . Retribution: I'm going to kill you because you killed my brother. Anticipation: I'm going to kill you because I killed your brother. Diplomacy: I'm going to kill my brother and then kill you on the pretext that your brother did it. . Crap: http://pasky.ji.cz/ From veillard@redhat.com Mon Jan 6 15:26:09 2003 From: veillard@redhat.com (Daniel Veillard) Date: Mon, 6 Jan 2003 10:26:09 -0500 Subject: [XML-SIG] Python improvements in libxml2-2.5.0 Message-ID: <20030106102609.B24250@redhat.com> Some of you might be interested by the changes available in the Python bindings of the just released libxml2-2.5.0: - XmlTextReader C# like API is available to work on very large documents and with a simpler programming model than SAX http://xmlsoft.org/xmlreader.html - drv_libxml2.py from Stephane Bidoul provides a SAX2 driver for libxml2, on top of it's XmlReader API - Hannu Krosing provided iterators support when using python-2.2 Downloads: ftp://xmlsoft.org/ and ftp://xmlsoft.org/python/ Website: http://xmlsoft.org/ Daniel -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From blalor+dated+1042375778.1978c9@ithacabands.org Tue Jan 7 12:50:49 2003 From: blalor+dated+1042375778.1978c9@ithacabands.org (Brian Lalor) Date: 07 Jan 2003 05:50:49 -0700 Subject: [XML-SIG] Re: SimpleXMLRPCServer Question References: <200301011815.00649.mark@easymailings.com> <200301021420.42028.mark@easymailings.com> Message-ID: Mark Bucciarelli writes: > > Care to report what that exception is? > > I don't know what it is. The SimpleXMLRPCRequestHandler code is: > > try: > data = self.rfile.read(...) > ... > except: > # internal error, report as HTTP server error > self.send_response(500) > self.end_headers() Check out the traceback module and use it to print the traceback to standard output. -- Brian Lalor | http://introducingthelalors.org/ blalor@ithacabands.org (email) | blalor@jabber.ithacabands.org (jabber) N33°29.18' W111°56.55' (Earth) From bourbaki20@hotmail.com Wed Jan 8 01:20:18 2003 From: bourbaki20@hotmail.com (Nicolas Bourbaki) Date: Tue, 07 Jan 2003 17:20:18 -0800 Subject: [XML-SIG] pyxml: currentNode.nodeValue = None? Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_788c_971_5a6e Content-Type: text/plain; format=flowed Dear All, I've used example from: http://pyxml.sourceforge.net/topics/howto/node22.html using blast output XML file. To my surprise despite having sane DTD validated file with nodes like: 01C08 607 0 607 ABI the currentNode.nodeValue is "None" whereas currentNode.firstChild.nodeValue gives "01C08 607 0 607 ABI"... This can not be right! Kindly take a look at the attached code and XML file. Thanks a lot for your help Darek Kedra _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail ------=_NextPart_000_788c_971_5a6e Content-Type: application/octet-stream; name="blast_parse.py" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="blast_parse.py" IyEvdXNyL2Jpbi9weXRob24KCmZyb20geG1sLmRvbS5leHQucmVhZGVyLlNh eCBpbXBvcnQgRnJvbVhtbEZpbGUKZnJvbSB4bWwuZG9tLk5vZGVGaWx0ZXIg aW1wb3J0IE5vZGVGaWx0ZXIKCgpkb2MgPSBGcm9tWG1sRmlsZSgiYmxhc3Qu b3V0NCIpCgoKd2Fsa2VyID0gZG9jLmNyZWF0ZVRyZWVXYWxrZXIoZG9jLmRv Y3VtZW50RWxlbWVudCwgTm9kZUZpbHRlci5TSE9XX0FMTCwgTm9uZSwgMCkK Cm15X3RhZ3MgPSAoIkJsYXN0T3V0cHV0X3F1ZXJ5LUlEIiwiQmxhc3RPdXRw dXRfcXVlcnktZGVmIiwgIkhpdF9pZCIsIkhpdF9kZWYiLCAiSHNwX3Njb3Jl IikKCgoKd2hpbGUgMToKICAgIGN1cnJlbnRfbm9kZSA9IHdhbGtlci5jdXJy ZW50Tm9kZS5ub2RlTmFtZQogICAgaWYgd2Fsa2VyLmN1cnJlbnROb2RlLm5v ZGVOYW1lIGluIG15X3RhZ3M6CiAgICAgICAgcHJpbnQgIHdhbGtlci5jdXJy ZW50Tm9kZS5ub2RlTmFtZSwgd2Fsa2VyLmN1cnJlbnROb2RlLm5vZGVWYWx1 ZSwgd2Fsa2VyLmN1cnJlbnROb2RlLmZpcnN0Q2hpbGQubm9kZVZhbHVlCiAg ICBuZXh0ID0gd2Fsa2VyLm5leHROb2RlKCkKICAgIGlmIG5leHQgaXMgTm9u ZTogYnJlYWsKCg== ------=_NextPart_000_788c_971_5a6e Content-Type: text/xml; name="blast_out.xml" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="blast_out.xml" blastn blastn 2.2.2 [Jan-08-2002] ~Reference: Altschul, Stephen F., Thomas L. Madden, Alejandro A. Schaffer, ~Jinghui Zhang, Zheng Zhang, Webb Miller, and David J. Lipman (1997), ~"Gapped BLAST and PSI-BLAST: a new generation of protein database search~programs", Nucleic Acids Res. 25:3389-3402. ./1056_sveta lcl|QUERY 01C08 607 0 607 ABI 607 5 0 1 -3 5 2 D 1 1 gnl|BL_ORD_ID|31 01C08 607 0 607 ABI 31 607 1 410.841 207 7.00277e-116 212 439 212 439 0 0 1 1 228 228 0 228 0 GGTGCAGCTGTATGAGCAGATTCTAGTCCTGTACCTGTGTTAGTACCTTTGTCACTTTAGAAGAAAAGATCATTCACAATCAAGGATAAAAAAATCCAGTCTATATCACAGCTGTGCCACTGTTTTCCAGAAACCACAGAGCACAGTGTAGGAAACATTCTAGCCAATTAGGGATTCTATTTGAGCACAAATTAACTGAGGGGGAAAATGGTAGCCTGAGTATTTATA GGTGCAGCTGTATGAGCAGATTCTAGTCCTGTACCTGTGTTAGTACCTTTGTCACTTTAGAAGAAAAGATCATTCACAATCAAGGATAAAAAAATCCAGTCTATATCACAGCTGTGCCACTGTTTTCCAGAAACCACAGAGCACAGTGTAGGAAACATTCTAGCCAATTAGGGATTCTATTTGAGCACAAATTAACTGAGGGGGAAAATGGTAGCCTGAGTATTTATA |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 2 36.1753 18 0.004274 1 18 1 18 0 0 1 1 18 18 0 18 0 CGTGAAGAGGCAGGATTG CGTGAAGAGGCAGGATTG |||||||||||||||||| 2 gnl|BL_ORD_ID|3 01A04 660 0 660 ABI 3 660 1 410.841 207 7.00277e-116 212 439 124 351 0 0 1 1 228 228 0 228 0 GGTGCAGCTGTATGAGCAGATTCTAGTCCTGTACCTGTGTTAGTACCTTTGTCACTTTAGAAGAAAAGATCATTCACAATCAAGGATAAAAAAATCCAGTCTATATCACAGCTGTGCCACTGTTTTCCAGAAACCACAGAGCACAGTGTAGGAAACATTCTAGCCAATTAGGGATTCTATTTGAGCACAAATTAACTGAGGGGGAAAATGGTAGCCTGAGTATTTATA GGTGCAGCTGTATGAGCAGATTCTAGTCCTGTACCTGTGTTAGTACCTTTGTCACTTTAGAAGAAAAGATCATTCACAATCAAGGATAAAAAAATCCAGTCTATATCACAGCTGTGCCACTGTTTTCCAGAAACCACAGAGCACAGTGTAGGAAACATTCTAGCCAATTAGGGATTCTATTTGAGCACAAATTAACTGAGGGGGAAAATGGTAGCCTGAGTATTTATA |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 3 gnl|BL_ORD_ID|1019 14E12 542 0 542 ABI 1019 542 1 402.911 203 1.70713e-113 439 212 135 362 0 0 1 -1 227 227 0 228 0 TATAAATACTCAGGCTACCATTTTCCCCCTCAGTTAATTTGTGCTCAAATAGAATCCCTAATTGGCTAGAATGTTTCCTACACTGTGCTCTGTGGTTTCTGGAAAACAGTGGCACAGCTGTGATATAGACTGGATTTTTTTATCCTTGATTGTGAATGATCTTTTCTTCTAAAGTGACAAAGGTACTAACACAGGTACAGGACTAGAATCTGCTCATACAGCTGCACC TATAAATACTCAGGCTACCATTTTCCCCCTCTGTTAATTTGTGCTCAAATAGAATCCCTAATTGGCTAGAATGTTTCCTACACTGTGCTCTGTGGTTTCTGGAAAACAGTGGCACAGCTGTGATATAGACTGGATTTTTTTATCCTTGATTGTGAATGATCTTTTCTTCTAAAGTGACAAAGGTACTAACACAGGTACAGGACTAGAATCTGCTCATACAGCTGCACC ||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 4 gnl|BL_ORD_ID|800 12C09 611 0 611 ABI 800 611 1 396.964 200 1.0532e-111 212 439 118 346 0 0 1 1 228 228 1 229 0 GGTGCAGCTGTATGAGCAGATTCTAGTCCTGTACCTGTGTTAGTACCTTTGTCACTTTAGAAGAAAAGA-TCATTCACAATCAAGGATAAAAAAATCCAGTCTATATCACAGCTGTGCCACTGTTTTCCAGAAACCACAGAGCACAGTGTAGGAAACATTCTAGCCAATTAGGGATTCTATTTGAGCACAAATTAACTGAGGGGGAAAATGGTAGCCTGAGTATTTATA GGTGCAGCTGTATGAGCAGATTCTAGTCCTGTACCTGTGTTAGTACCTTTGTCACTTTAGAAGAAAAGAATCATTCACAATCAAGGATAAAAAAATCCAGTCTATATCACAGCTGTGCCACTGTTTTCCAGAAACCACAGAGCACAGTGTAGGAAACATTCTAGCCAATTAGGGATTCTATTTGAGCACAAATTAACTGAGGGGGAAAATGGTAGCCTGAGTATTTATA ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 5 gnl|BL_ORD_ID|871 13A08 540 0 540 ABI 871 540 1 381.105 192 6.259e-107 212 439 124 352 0 0 1 1 226 226 1 229 0 GGTGCAGCTGTATGAGCAGATTCTAGTCCTGTACCTGTGTTAGTACCTTTGTCACTTTAGAAGAAAAGAT-CATTCACAATCAAGGATAAAAAAATCCAGTCTATATCACAGCTGTGCCACTGTTTTCCAGAAACCACAGAGCACAGTGTAGGAAACATTCTAGCCAATTAGGGATTCTATTTGAGCACAAATTAACTGAGGGGGAAAATGGTAGCCTGAGTATTTATA GGTGCAGCCGTATGAGCAGATTCTAGTCCTGTACCTGTGTTAGTACCTTTGTCACTTTAGAAGAAAAGATTCATTCACAATCAAGGATAAAAAAATCCAGTCTATATCACAGCTGTGCCACTGTTTTCCAGAAACCACAGAGCACAGTGTAGGAAACATTCTAGCCGATTAGGGATTCTATTTGAGCACAAATTAACTGAGGGGGAAAATGGTAGCCTGAGTATTTATA |||||||| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 6 gnl|BL_ORD_ID|0 01A01 469 0 469 ABI 0 469 1 32.2106 16 0.0667318 1 16 1 16 0 0 1 1 16 16 0 16 0 CGTGAAGAGGCAGGAT CGTGAAGAGGCAGGAT |||||||||||||||| 7 gnl|BL_ORD_ID|46 01D11 490 0 490 ABI 46 490 1 30.2282 15 0.263683 1 15 1 15 0 0 1 1 15 15 0 15 0 CGTGAAGAGGCAGGA CGTGAAGAGGCAGGA ||||||||||||||| 8 gnl|BL_ORD_ID|1016 14E09 544 0 544 ABI 1016 544 1 28.2459 14 1.04191 2 15 1 14 0 0 1 1 14 14 0 14 0 GTGAAGAGGCAGGA GTGAAGAGGCAGGA |||||||||||||| 9 gnl|BL_ORD_ID|1011 14E04 539 0 539 ABI 1011 539 1 26.2635 13 4.11699 330 318 214 226 0 0 1 -1 13 13 0 13 0 TGGCACAGCTGTG TGGCACAGCTGTG ||||||||||||| 10 gnl|BL_ORD_ID|607 10C08 508 0 508 ABI 607 508 1 26.2635 13 4.11699 330 318 212 224 0 0 1 -1 13 13 0 13 0 TGGCACAGCTGTG TGGCACAGCTGTG ||||||||||||| 1056 574070 0 3.31657e+08 0.710605 1.37407 1.30725 ------=_NextPart_000_788c_971_5a6e-- From tpassin@comcast.net Wed Jan 8 05:09:21 2003 From: tpassin@comcast.net (Thomas B. Passin) Date: Wed, 08 Jan 2003 00:09:21 -0500 Subject: [XML-SIG] pyxml: currentNode.nodeValue = None? References: Message-ID: <005b01c2b6d4$1a79ff40$4b183044@tbp1> [Nicolas Bourbaki]> > I've used example from: > > http://pyxml.sourceforge.net/topics/howto/node22.html using blast output XML > file. > > To my surprise despite having sane DTD validated file with nodes like: > > 01C08 607 0 607 ABI > > the currentNode.nodeValue is "None" whereas currentNode.firstChild.nodeValue > gives "01C08 607 0 607 ABI"... This can not be right! > It is right - it is how the DOM works (I mean the W3C DOM in general, not just the Python one you are using). The character data is contained in one or more text nodes that are children of the containing element node. If it happens that your data ends up all in one node , that text node will be the first child node of the element node. That is just what you report getting. Be aware that it is possible to have the character data split up among several text nodes, and you would then have to collect them all. This should not happen in your case if all the files look like your sample. Cheers, Tom P From Erik.Isokangas@hochtief.de Wed Jan 8 13:19:41 2003 From: Erik.Isokangas@hochtief.de (Isokangas, Erik HTC/DE/FRA) Date: Wed, 8 Jan 2003 14:19:41 +0100 Subject: [XML-SIG] (no subject) Message-ID: <0951584E7226D411963800D0B73E5B42014BFAB9@GDMXS050> Hi, A bit of history... I've been trying to use the pyGoogle module. It seems to work fine on a PC/Win2k machine, but pyGoogle could not find a sax reader on my Linux server. Both have python 2.1.3 installed. Reading a newsgroup I learned about pyXML and decided to install it on the Linux box (hoping to get a working sax reader). The install seem to work fine. However, now when I try to do a google search I get the following error... >>> data = google.doGoogleSearch('python') Traceback (most recent call last): File "", line 1, in ? File "/usr/local/lib/python2.1/site-packages/pygoogle/google.py", line 311, in doGoogleSearch safeSearch, language, inputencoding, outputencoding) File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", line 3619, in __r_call self.__hd, self.__ma) File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", line 3539, in __call p, attrs = parseSOAPRPC(r, attrs = 1) File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", line 2818, in parseSOAPRPC t = _parseSOAP(xml_str, rules = rules) File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", line 2790, in _parseSOAP parser = xml.sax.make_parser() File "xml/sax/sax2exts.py", line 37, in make_parser return XMLParserFactory.make_parser(parser_list) File "xml/sax/saxexts.py", line 64, in make_parser return self._create_parser(parser_name) File "xml/sax/saxexts.py", line 43, in _create_parser return drv_module.create_parser() File "xml/sax/saxexts.py", line 74, in _create_parser raise _exceptions.SAXReaderNotAvailable TypeError: __init__() takes at least 2 arguments (1 given) Can you suggest what may be the problem here? Thanks very much for your help. Erik Isokangas. From Erik.Isokangas@hochtief.de Wed Jan 8 14:20:22 2003 From: Erik.Isokangas@hochtief.de (Isokangas, Erik HTC/DE/FRA) Date: Wed, 8 Jan 2003 15:20:22 +0100 Subject: [XML-SIG] AW: sax reader not available Message-ID: <0951584E7226D411963800D0B73E5B42014BFABA@GDMXS050> As an adendum to my previous e-mail: I found a similar problem = referenced at... http://groups.google.com/groups?hl=3Den&lr=3D&ie=3DUTF-8&threadm=3D999e7= ee9.02112810 48.786d3867%40posting.google.com&rnum=3D3&prev=3D/groups%3Fhl%3Den%26lr%= 3D%26ie% 3DISO-8859-1%26q%3D%2522__init__()%2Btakes%2Bat%2Bleast%2B2%2Barguments%= 2522 %2Bgroup%253Acomp.lang.python.*%26btnG%3DGoogle%2BSearch However, unlike the originator, import sax.parsers.expat works on my machine. The calls 'Mr.Man' use to create the failure also work on my installation. I built pyXML from source on a linux box under Python 2.1.3. Should = this work? Thanks for your thoughts, Erik. > -----Urspr=FCngliche Nachricht----- > Von: Isokangas, Erik HTC/DE/FRA=20 > Gesendet am: Wednesday, 8 January 2003 2:20 PM > An: 'xml-sig@python.org' > Betreff:=09 >=20 > Hi, >=20 > A bit of history... > I've been trying to use the pyGoogle module. It seems to work fine = on a > PC/Win2k machine, but pyGoogle could not find a sax reader on my = Linux > server. Both have python 2.1.3 installed. Reading a newsgroup I = learned > about pyXML and decided to install it on the Linux box (hoping to get = a > working sax reader). >=20 > The install seem to work fine. However, now when I try to do a = google > search I get the following error... >=20 > >>> data =3D google.doGoogleSearch('python') > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/local/lib/python2.1/site-packages/pygoogle/google.py", = line > 311, in doGoogleSearch > safeSearch, language, inputencoding, outputencoding) > File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", = line > 3619, in __r_call > self.__hd, self.__ma) > File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", = line > 3539, in __call > p, attrs =3D parseSOAPRPC(r, attrs =3D 1) > File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", = line > 2818, in parseSOAPRPC > t =3D _parseSOAP(xml_str, rules =3D rules) > File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", = line > 2790, in _parseSOAP > parser =3D xml.sax.make_parser() > File "xml/sax/sax2exts.py", line 37, in make_parser > return XMLParserFactory.make_parser(parser_list) > File "xml/sax/saxexts.py", line 64, in make_parser > return self._create_parser(parser_name) > File "xml/sax/saxexts.py", line 43, in _create_parser > return drv_module.create_parser() > File "xml/sax/saxexts.py", line 74, in _create_parser > raise _exceptions.SAXReaderNotAvailable > TypeError: __init__() takes at least 2 arguments (1 given) >=20 >=20 >=20 > Can you suggest what may be the problem here? =20 >=20 > Thanks very much for your help. >=20 > Erik Isokangas. >=20 From uche.ogbuji@fourthought.com Thu Jan 9 03:05:31 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: 08 Jan 2003 20:05:31 -0700 Subject: [XML-SIG] Article: Python generators + DOM Message-ID: <1042081531.1549.39.camel@localhost.localdomain> http://www.xml.com/pub/a/2003/01/08/py-xml.html Techniques and routines taking advantage of Python generators for DOM processing. Builds on my earlier article: http://www-106.ibm.com/developerworks/library/x-tipgenr.html -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com A Python & XML Companion - http://www.xml.com/pub/a/2002/12/11/py-xml.html XML class warfare - http://www.adtmag.com/article.asp?id=6965 MusicBrainz metadata - http://www-106.ibm.com/developerworks/xml/library/x-think14.html From Erik.Isokangas@hochtief.de Thu Jan 9 07:57:21 2003 From: Erik.Isokangas@hochtief.de (Isokangas, Erik HTC/DE/FRA) Date: Thu, 9 Jan 2003 08:57:21 +0100 Subject: [XML-SIG] AW: sax reader not available Message-ID: <0951584E7226D411963800D0B73E5B42014BFABC@GDMXS050> Problem solved. I simply needed to re-install pygoogle. Something got broken along the way. The coffee must have been stale yesterday. Sorry for the inconvenience. Regards, Erik. > -----Urspr=FCngliche Nachricht----- > Von: Isokangas, Erik HTC/DE/FRA=20 > Gesendet am: Wednesday, 8 January 2003 3:20 PM > An: 'xml-sig@python.org' > Betreff: AW: sax reader not available >=20 > As an adendum to my previous e-mail: I found a similar problem = referenced > at... > = http://groups.google.com/groups?hl=3Den&lr=3D&ie=3DUTF-8&threadm=3D999e7= ee9.021128 > = 1048.786d3867%40posting.google.com&rnum=3D3&prev=3D/groups%3Fhl%3Den%26l= r%3D%2 > = 6ie%3DISO-8859-1%26q%3D%2522__init__()%2Btakes%2Bat%2Bleast%2B2%2Bargume= nt > s%2522%2Bgroup%253Acomp.lang.python.*%26btnG%3DGoogle%2BSearch >=20 > However, unlike the originator, import sax.parsers.expat works on my > machine. The calls 'Mr.Man' use to create the failure also work on = my > installation. >=20 > I built pyXML from source on a linux box under Python 2.1.3. Should = this > work? >=20 > Thanks for your thoughts, >=20 > Erik. >=20 >=20 > -----Urspr=FCngliche Nachricht----- > Von: Isokangas, Erik HTC/DE/FRA=20 > Gesendet am: Wednesday, 8 January 2003 2:20 PM > An: 'xml-sig@python.org' > Betreff:=09 >=20 > Hi, >=20 > A bit of history... > I've been trying to use the pyGoogle module. It seems to work fine > on a PC/Win2k machine, but pyGoogle could not find a sax reader on my > Linux server. Both have python 2.1.3 installed. Reading a newsgroup = I > learned about pyXML and decided to install it on the Linux box = (hoping to > get a working sax reader). >=20 > The install seem to work fine. However, now when I try to do a > google search I get the following error... >=20 > >>> data =3D google.doGoogleSearch('python') > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/local/lib/python2.1/site-packages/pygoogle/google.py", > line 311, in doGoogleSearch > safeSearch, language, inputencoding, outputencoding) > File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", > line 3619, in __r_call > self.__hd, self.__ma) > File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", > line 3539, in __call > p, attrs =3D parseSOAPRPC(r, attrs =3D 1) > File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", > line 2818, in parseSOAPRPC > t =3D _parseSOAP(xml_str, rules =3D rules) > File "/usr/local/lib/python2.1/site-packages/pygoogle/SOAP.py", > line 2790, in _parseSOAP > parser =3D xml.sax.make_parser() > File "xml/sax/sax2exts.py", line 37, in make_parser > return XMLParserFactory.make_parser(parser_list) > File "xml/sax/saxexts.py", line 64, in make_parser > return self._create_parser(parser_name) > File "xml/sax/saxexts.py", line 43, in _create_parser > return drv_module.create_parser() > File "xml/sax/saxexts.py", line 74, in _create_parser > raise _exceptions.SAXReaderNotAvailable > TypeError: __init__() takes at least 2 arguments (1 given) >=20 >=20 >=20 > Can you suggest what may be the problem here? =20 >=20 > Thanks very much for your help. >=20 > Erik Isokangas. >=20 From dev-xml@smartology.nl Thu Jan 9 15:14:38 2003 From: dev-xml@smartology.nl (Remy C. Cool) Date: Thu, 9 Jan 2003 16:14:38 +0100 Subject: [XML-SIG] how to get the 'codepage' from a xml document Message-ID: <200301091614.38258.dev-xml@smartology.nl> Hi, I've probably overlooked something in the manuals and references, but I can't find a method on how to extract the codepage/encoding declaration from an xml file using sax. ie a file with the following declaration: How do I get the encoding attribute? Regards, Remy From stephane.bidoul@softwareag.com Thu Jan 9 20:57:36 2003 From: stephane.bidoul@softwareag.com (Stéphane Bidoul) Date: Thu, 9 Jan 2003 21:57:36 +0100 Subject: [XML-SIG] re: Python improvements in libxml2-2.5.0 Message-ID: <000701c2b821$e965a720$e600a8c0@acsesbi> > Some of you might be interested by the changes available in the > Python bindings of the just released libxml2-2.5.0: I've just uploaded fresh windows binaries at http://users.skynet.be/sbi/libxml-python/ -sbi From dev-xml@smartology.nl Thu Jan 9 18:42:59 2003 From: dev-xml@smartology.nl (Remy C. Cool) Date: Thu, 9 Jan 2003 19:42:59 +0100 Subject: [XML-SIG] how to get the 'codepage' from a xml document In-Reply-To: <3E1DB708.7020802@v.loewis.de> References: <200301091614.38258.dev-xml@smartology.nl> <3E1DB708.7020802@v.loewis.de> Message-ID: <200301091926.41346.dev-xml@smartology.nl> I found that the class InputSource has a method getEncoding ... now I just have to find out how to get this implemented in a such a way that I can pass the encoding to the parser. Does anyone know where I can find an example on how to do this? > > I've probably overlooked something in the manuals and references, > > but I can't find a method on how to extract the codepage/encoding > > declaration from an xml file using sax. > > You haven't overlooked anything: SAX does not provide this > information (as it doesn't provide a lot of other lexical > information). > > Notice that in the presence of external entities, "the" encoding is > not a meaningful term: different encodings might be used in > different parts of the document. From martin@v.loewis.de Thu Jan 9 17:53:12 2003 From: martin@v.loewis.de (=?ISO-8859-15?Q?=22Martin_v=2E_L=F6wis=22?=) Date: Thu, 09 Jan 2003 18:53:12 +0100 Subject: [XML-SIG] how to get the 'codepage' from a xml document In-Reply-To: <200301091614.38258.dev-xml@smartology.nl> References: <200301091614.38258.dev-xml@smartology.nl> Message-ID: <3E1DB708.7020802@v.loewis.de> Remy C. Cool wrote: > I've probably overlooked something in the manuals and references, but > I can't find a method on how to extract the codepage/encoding > declaration from an xml file using sax. You haven't overlooked anything: SAX does not provide this information (as it doesn't provide a lot of other lexical information). Notice that in the presence of external entities, "the" encoding is not a meaningful term: different encodings might be used in different parts of the document. Regards, Martin From noreply@sourceforge.net Fri Jan 10 04:35:20 2003 From: noreply@sourceforge.net (SourceForge.net) Date: Thu, 09 Jan 2003 20:35:20 -0800 Subject: [XML-SIG] [ pyxml-Bugs-665486 ] Add support for SAX skipped entity events with expat? Message-ID: Bugs item #665486, was opened at 2003-01-09 23:35 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106473&aid=665486&group_id=6473 Category: SAX Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mark E. (snowballville) Assigned to: Nobody/Anonymous (nobody) Summary: Add support for SAX skipped entity events with expat? Initial Comment: Could you please add support to expat's SAX driver for calling ContentHandler.skippedEvent? I don't have a patch, but I can suggest what changes are needed: sax/ExpatReader.py: class ExpatParser: # ... # current code # ... def skipped_entity_handler(self, *args): self._cont_handler.skippedEntity(args[0]) def reset(self): # ... # current code # ... self._parser.SkippedEntityHandler = self.skipped_entity_handler # and possibly add... self._parser.UseForeignDTD(True) # so undefined entities will be reported as skipped. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106473&aid=665486&group_id=6473 From marvin.davis@ziftdavis.com Fri Jan 10 03:26:54 2003 From: marvin.davis@ziftdavis.com (Marvin Davis) Date: Thu, 9 Jan 2003 19:26:54 -0800 Subject: [XML-SIG] Business Press Release Message-ID: <200301091926905.SM00896@marvin.davis@ziftdavis.com>
 
Great Income Opportunity Now Available...
We are now offering excellent income opportunities to Individuals, Entrepreneurs, Sales Organizations, VARs, Integrators, Small/Medium Businesses and Corporations interested in earning commissions in the fast growing web conferencing markets.  
Become a "BUSINESS ALLIANCE PARTNER"
This program is a proven turn-key business opportunity for individuals as well as experienced sales organizations to earn monthly reoccurring commissions on every customer using your own "co-branded web conferencing service" 




"Unlike other products,
businesses NEED and WANT
 web conferencing services
at an affordable price".






BENEFITS:
  • NO RISK !
  • NO COST !
  • YOUR OWN C0-BRANDED WEBSITE ! (sample)
  • Each customer earns you money !
  • We do all the work including billing !
  • Free 3 day trials from your website !
  • Our system automatically tracks your customers
  • View Your Statistics in live time
  • Commissions on the 15th of every month
  • Get credit for Mail, Fax, Online, or Phone Orders
  • All you need to do is advertise your own conferencing website!

HOW IT WORKS:

Total Active Paying Customers  One Time
Commission
Monthly
Re-Occurring
1-15 customers

$10

16-25 customers

$15

26-50 customers  

20%

50-100 customers  

25%

Over 100 customers  

30%

PARTICIPATION REQUIREMENTS

To become a "Business Alliance Partner" you need the following:

  • Have an active webconference.com account. ( sign up now! )
    It's that easy! 

This is an amazing opportunity not available by similar competing products.

WHAT IS MY REALISTIC INCOME POTENTIAL?

The average current income is $42,115 the first year and $91,786 the second year. The average growth is about 15% for the second year and 23% the third year.  Like any other business, some months are traditionally better than others.  These are our current average statistics per month:

Part Time Associates  Sell 9-20 Accounts per month!

Jan Feb March April May June July Aug Sept Oct Nov Dec Total
Average
Clients Sold
Per Month
9 15 12 17 9 18 9 17 19 20 11 9
Your Total
Customers
9 24 36 53 62 80 89 106 125 145 156 165
Commissions $90 $195 $497 $915 $1,070 $1,380 $1,536 $2,195 $2,587 $3,002 $3,231 $3,416 $20,115

Second Year @ 15% growth:

$43,248

Third Year @ 23% growth:

$96,445

Full Time Associates Sell 9-45 Accounts per month!

Jan Feb March April May June July Aug Sept Oct Nov Dec Total
Average
Clients Sold
Per Month
9 19 26 32 36 39 29 33 40 45 15 9
Your Total
Customers
9 28 54 86 122 161 190 223 263 308 323 332
Commissions $90 $389 $934 $1,486 $2,526 $3,334 $3,934 $4,617 $5,445 $6,376 $6,687 $6,873 $42,691

Second Year @ 15% growth:

$91,786

Third Year @ 23% growth:

$204,684

Experienced Marketers Sell 9 - 150 Accounts per month!

Jan Feb March April May June July Aug Sept Oct Nov Dec Total
Average
Clients Sold
Per Month
9 26 52 74 108 118 89 78 126 150 53 18
Your Total
Customers
9 35 87 161 269 387 476 554 680 830 883 901
Commissions $90 $483 $1,507 $3,340 $5,569 $8,020 $9,855 $11,470 $14,076 $17,190 $18,280 $18,650 $108,530

Second Year @ 15% growth:

$233,340

Third Year @ 23% growth:

$520,350
Call Now @ 800-695-3355 or Click Here For More Info
 

This email is not sent unsolicited. This message is sent to subscribers ONLY.
To unsubscribe please click here.

From mike@skew.org Fri Jan 10 09:55:15 2003 From: mike@skew.org (Mike Brown) Date: Fri, 10 Jan 2003 02:55:15 -0700 (MST) Subject: [XML-SIG] how to get the 'codepage' from a xml document In-Reply-To: <200301091926.41346.dev-xml@smartology.nl> "from Remy C. Cool at Jan 9, 2003 07:42:59 pm" Message-ID: <200301100955.h0A9tFvG035933@chilled.skew.org> Remy C. Cool wrote: > I found that the class InputSource has a method getEncoding It's not what you're looking for. It only tells you what you previously set with setEncoding(). The InputSource does not peek into the stream to autodetect the encoding. As it says in the spec at http://www.saxproject.org/apidoc/org/xml/sax/InputSource.html The SAX parser will use the InputSource object to determine how to read XML input. If there is a character stream available, the parser will read that stream directly, disregarding any text encoding declaration found in that stream. If there is no character stream, but there is a byte stream, the parser will use that byte stream, using the encoding specified in the InputSource or else (if no encoding is specified) autodetecting the character encoding using an algorithm such as the one in the XML specification. For example, if you are receiving the byte stream over HTTP or some other MIME-based protocol, a Content-Type header may have contained a charset parameter that indicated the encoding. This would take precedence over the self-declared encoding. You would use setEncoding() to indicate that the byte stream being wrapped by the InputSource is to be decoded according to that encoding and not according to whatever is mentioned in the prolog. > ... now I > just have to find out how to get this implemented in a such a way > that I can pass the encoding to the parser. Why do you think you need to do this? A compliant parser is going to be autodetecting the encoding if you don't force it to use something else. Why do you want to do the autodetect externally? > Does anyone know where I can find an example on how to do this? http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52257 Mike -- Mike J. Brown | http://skew.org/~mike/resume/ Denver, CO, USA | http://skew.org/xml/ From dev-xml@smartology.nl Fri Jan 10 10:27:15 2003 From: dev-xml@smartology.nl (Remy C. Cool) Date: Fri, 10 Jan 2003 11:27:15 +0100 Subject: [XML-SIG] how to get the 'codepage' from a xml document In-Reply-To: <200301100955.h0A9tFvG035933@chilled.skew.org> References: <200301100955.h0A9tFvG035933@chilled.skew.org> Message-ID: <200301101127.15097.dev-xml@smartology.nl> On Friday 10 January 2003 10:55, Mike Brown wrote: > Remy C. Cool wrote: > > just have to find out how to get this implemented in a such a way > > that I can pass the encoding to the parser. > > Why do you think you need to do this? A compliant parser is going > to be autodetecting the encoding if you don't force it to use > something else. Why do you want to do the autodetect externally? My application appends/inserts data into an existing xml file ... some what like a print queue. So I need the encoding to be able to create 'the new' xml file in the same encoding as the original and I don't like to hardcode the encoding into the source. It uses no external entity's (except for a DTD in plain ASCII) so that's not a problem. I now have a function which extracts the encoding (if present) so I can pass it to the parser. Would be nice to be able to acces this kind of information with a class (like ContentHandler) in sax. Another solution to this problem would be to create only Unicode XML files, but then there's the problem that not 'all' text editors understand unicode. > > Does anyone know where I can find an example on how to do this? > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52257 Found that yesterday :) Thanks for your reply > > Mike From martin@v.loewis.de Fri Jan 10 10:47:10 2003 From: martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) Date: 10 Jan 2003 11:47:10 +0100 Subject: [XML-SIG] how to get the 'codepage' from a xml document In-Reply-To: <200301101127.15097.dev-xml@smartology.nl> References: <200301100955.h0A9tFvG035933@chilled.skew.org> <200301101127.15097.dev-xml@smartology.nl> Message-ID: "Remy C. Cool" writes: > My application appends/inserts data into an existing xml file ... some > what like a print queue. So I need the encoding to be able to create > 'the new' xml file in the same encoding as the original and I don't > like to hardcode the encoding into the source. It uses no external > entity's (except for a DTD in plain ASCII) so that's not a problem. If you are using SAX, I imagine you generate a *new* document, rather than "inserting" into an existing document. In that case, the new document could use a different encoding than the old one. Just use UTF-8 for the new document (which is the default, anyway), and don't worry about the encoding of the original document. Regards, Martin From tpassin@comcast.net Fri Jan 10 13:41:33 2003 From: tpassin@comcast.net (Thomas B. Passin) Date: Fri, 10 Jan 2003 08:41:33 -0500 Subject: [XML-SIG] how to get the 'codepage' from a xml document References: <200301100955.h0A9tFvG035933@chilled.skew.org> <200301101127.15097.dev-xml@smartology.nl> Message-ID: <000f01c2b8ad$fd59f7e0$4b183044@tbp1> [Remy C. Cool] > > > just have to find out how to get this implemented in a such a way > > > that I can pass the encoding to the parser. > > > > Why do you think you need to do this? A compliant parser is going > > to be autodetecting the encoding if you don't force it to use > > something else. Why do you want to do the autodetect externally? > > My application appends/inserts data into an existing xml file ... some > what like a print queue. So I need the encoding to be able to create > 'the new' xml file in the same encoding as the original and I don't > like to hardcode the encoding into the source. It uses no external > entity's (except for a DTD in plain ASCII) so that's not a problem. > I do not think you are looking at things quite the right way here. When you read the source and parse it, the resulting characters should no longer be "encoded" - they are in the computer's internal format. You should read the external file into which you want to insert the new material. It will now be in the internal format too, and the two can be combined. When you write the combined file, you can specify the encodng to use. It is true that you still have to decide what encoding to use for the output, but you no longer have a mix-and-match problem. Anyway, if you have to figure out the external file's encoding, you can always read the first line of the external file, look for "encoding = ", look at the byte order mark if necessary, and do a simple-minded detection. It is bound to be good enough for the merging output in your situation. Cheers, Tom P From dev-xml@smartology.nl Fri Jan 10 13:49:32 2003 From: dev-xml@smartology.nl (Remy C. Cool) Date: Fri, 10 Jan 2003 14:49:32 +0100 Subject: [XML-SIG] how to get the 'codepage' from a xml document In-Reply-To: <000f01c2b8ad$fd59f7e0$4b183044@tbp1> References: <200301100955.h0A9tFvG035933@chilled.skew.org> <200301101127.15097.dev-xml@smartology.nl> <000f01c2b8ad$fd59f7e0$4b183044@tbp1> Message-ID: <200301101449.32229.dev-xml@smartology.nl> On Friday 10 January 2003 14:41, Thomas B. Passin wrote: > [Remy C. Cool] > > > > > just have to find out how to get this implemented in a such a > > > > way that I can pass the encoding to the parser. > > > > > > Why do you think you need to do this? A compliant parser is > > > going to be autodetecting the encoding if you don't force it to > > > use something else. Why do you want to do the autodetect > > > externally? > > > > My application appends/inserts data into an existing xml file ... > > some what like a print queue. So I need the encoding to be able > > to create 'the new' xml file in the same encoding as the original > > and I don't like to hardcode the encoding into the source. It > > uses no external entity's (except for a DTD in plain ASCII) so > > that's not a problem. > > I do not think you are looking at things quite the right way here. > When you read the source and parse it, the resulting characters > should no longer be "encoded" - they are in the computer's internal > format. You should read the external file into which you want to > insert the new material. It will now be in the internal format > too, and the two can be combined. When you write the combined file, > you can specify the encodng to use. > > It is true that you still have to decide what encoding to use for > the output, but you no longer have a mix-and-match problem. > Anyway, if you have to figure out the external file's encoding, you > can always read the first line of the external file, look for > "encoding = ", look at the byte order mark if necessary, and do a > simple-minded detection. It is bound to be good enough for the > merging output in your situation. Thanks for your comment. The thing is that I don't want to hardcode the encoding format in the source for the output file ... it should be the same as the input automatically. I realized that a 'helper' function to read the first line would suffice for this purpose, and it does. Regards, Remy From mike@skew.org Fri Jan 10 18:04:15 2003 From: mike@skew.org (Mike Brown) Date: Fri, 10 Jan 2003 11:04:15 -0700 (MST) Subject: [XML-SIG] how to get the 'codepage' from a xml document In-Reply-To: <200301101127.15097.dev-xml@smartology.nl> "from Remy C. Cool at Jan 10, 2003 11:27:15 am" Message-ID: <200301101804.h0AI4Fkf038016@chilled.skew.org> Remy C. Cool wrote: > My application appends/inserts data into an existing xml file ... some > what like a print queue. So I need the encoding to be able to create > 'the new' xml file in the same encoding as the original and I don't > like to hardcode the encoding into the source. Ah, that makes sense, then. Yes, the only way you're going to be able to do that is to peek at the byte stream yourself and see if you can figure out the encoding. If you're absolutely certain that the given encoding declaration is accurate, and you're just dealing with XML in static files on disk or strings in memory, you can do this. If you've got a non-rewindable stream, you'll have to do some buffering. > Would be nice to be able to acces this kind of information with a > class (like ContentHandler) in sax. It's the parser's job to get rid of all the lexical info, because according to how XML is defined, the application is only supposed to be concerned with the logical structures: the hierarchy of elements, attributes, character data, processing instructions, all Unicode-based. How the document was encoded, what the tags looked like, what kind of quotes delimited attribute values, how the doc was split up into entities and entity references, extraneous whitespace, etc. is all considered lexical fluff. For the most part, SAX only concerns itself with providing the application with the logical data, which is exactly what a parser is supposed to do. > Another solution to this problem would be to create only Unicode XML > files, but then there's the problem that not 'all' text editors > understand unicode. This is a perennial problem with XML. Parsers are only required to support UTF-8 and UTF-16. Editors that don't understand UTF-8 or UTF-16 are only going to understand things like iso-8859-1 or platform default like windows-125x (1252, etc.)... so if you encode XML with one of the text editors in mind, you might be making the document unparsable in some parsers. I think most parsers do support iso-8859-1, though, in real life. Mike -- Mike J. Brown | http://skew.org/~mike/resume/ Denver, CO, USA | http://skew.org/xml/ From julou@infographers.net Fri Jan 10 18:46:50 2003 From: julou@infographers.net (julou@infographers.net) Date: Fri, 10 Jan 2003 19:46:50 +0100 Subject: [XML-SIG] Tr: Ou va l'éducation ?!? Message-ID: <37631.824195717593600.648417@localhost> Le gouvernement français ŕ récemment fait passer des réformes qui suscitent de profondes inquiétudes dans toute la communauté universitaire (étudiant-e-s, professeurs, et personnel). Elles pourraient amener ŕ se mettre en place un systčme éducatif trčs inégalitaire en France, analogue au systčme éducatif américain. Malgré le caractčre majeur de ces réformes dont nous appréhendions l'arrivée, depuis 1998, aucun débat publique n'a eu lieu avant leur discrčte application le 8 avril 2002, pendant les présidentielles.... Etudiants, professeurs, parents d'élčves, lycéens, ou tout simplement si vous vous sentez concernés par le devenir de notre systčme éducatif, cette information vous concerne. Devant le manque de relais d'informations - parfois volontaire - des médias, les étudiant-e-s de l'université Toulouse 2 le Mirail ont décidé de lancer ce message d'information, pour tenter d'éveiller l'attention sur ces réformes et sur les véritables enjeux qui pouraient se cacher derričre. Nous appelons ŕ la solidarité des internautes pour nous aider ŕ transmettre ce message. Nous vous invitons ŕ prendre quelques minutes pour le lire, ŕ en discuter avec votre entourage, et ŕ transmettre cet e-mail ŕ un maximum de personnes. Ces réformes instaurent: - LMD, ou 3/5/8 : Les seuls diplômes reconnus sont la licence (bac + 3), le master (bac + 5), et le doctorat (bac + 8): Ce recul du premier diplôme universitaire peut pénaliser ceux pour qui le DEUG (bac + 2) représentait déjŕ un investissement important. - Les ECTS : -Les diplômes ne seront plus délivrés suite ŕ la validation d'un certain nombre d'enseignements correspondants chacun ŕ un certain nombre fixe d'heures de cours, mais par un cumul de points ECTS (European Credit Transfer System). Ainsi, le cumul de 180 crédits ECTS donnera accčs au grade de la licence, 300 ŕ celui du master, etc... -Ces crédits ne sanctionneront plus forcément la validation d'un certain nombre d'acquis mais un "volume de travail", ainsi du travail ŕ la bibliothčque universitaire, un stage en entreprises pourront par exemple donner des crédits ECTS. -Les diplômes sont dorénavant accompagnés d'une annexe descriptive qui individualise le diplôme en révelant l'historique complet du cursus de l'étudiant: Dans quelle université a t'il fait ses études quelles matičres a t'il choisi, les notes qu'il a obtenu, ses échecs précédents...) -Chaque université définie elle-męme l'affectation des crédits. Il n'y a plus de nombre d'heures de cours fixé nationalement. La qualité de l'enseignement pourra alors varier trčs fortement d'une fac ŕ l'autre, cassant ainsi le cadre national des diplômes. On entrerait dans un systčme éducatif concurrentiel avec des établissements plus ou moins prestigieux, ou la qualité des études dépendra plus que jamais du budget de l'étudiant. - Régionalisation du financement des universités: Cela risque renforcer les inégalités budgétaires entre établissements des régions "riches" et ceux des régions "pauvres". Parallčlement ŕ cela, on observe un désengagement financier croissant de l'état dans l'enseignement. Les universités doivent réguličrement augmenter leur frais d'inscription mais aussi faire de plus en plus appel ŕ des fonds privés provenant d'entreprises locales, avec, en contre partie, la mise en place d'enseignements directement orientés vers celles-ci. Ce financement sélectif se fait au détriment des filičres "non économiquement rentables" (sciences humaines, lettres, art, philosophie...) qui risquent de redevenir rapidement le privilčge d'une fine tranche de la société. De plus, ce financement s'effectuant par les entreprises locales, celui-ci varira fortement selon l'activité économique de la région. Vous pouvez trouver les textes officiels correspondant ŕ ces réformes sur internet: Le rapport Attali, écrit en 1998, il est le fil directeur des réformes en cours: ftp://trf.education.gouv.fr/pub/edutel/attali/attali.rtf Décret du 8 avril 2002 de Jaques Lang, instaurant les ECTS: http://mirailenlutte.ouvaton.org/article.php3?id_article=25 La conférence de presse du Luc Ferry (ministre de l'éducation et membre du conseil d'administration de Vivendi-Universal), donnant les grandes lignes du systčme éducatif tel qu'il l'envisage avec ces réformes: http://www.education.gouv.fr/presse/2002/rentreesupdp.htm De nombreuses informations sur les réformes et sur le mouvement sont disponibles sur le site du Mirail en lutte: http://mirailenlutte.ouvaton.org. La France n'est malheureusement pas, avec ces réformes, un cas isolé. On ressent depuis quelques temps, sous la pression des lobbies industriels, une politique de marchandisation et rantabilisation de l'enseignement qui se met en place et s'accroît partout en Europe. De plus en plus d'écoles et d'universités en Europe sont privatisées. Des frais de scolarité sont mis en place et augmentent dangereusement. Le droit ŕ disposer d'une bonne éducation est de plus en plus une question d'argent. Les droits démocratiques des étudiant-e-s sont réduits au strict minimum. -Au Royaume Uni, un nombre grandissant de responsables de l'éducation et de dirigeants économiques parlent ouvertement d'un systčme entičrement privatisé et de la dérégulation des frais d'inscription. -En Irlande, on discute de mettre en place des frais de scolarité de trois ŕ quatre mille euros. -En Allemagne, instauration des frais de scolarité, restructuration du systčme d'éducation selon les propositions de groupes néolibéraux (comme le C.H.E) (Centre Pour le Développement des Universités, centre lié au groupe Bertelsmann) -En Autriche, mise en place de frais de scolarité. -Aux Pays-Bas, le ministre Jorritsma a déclaré que les universités devraient ętre jugées en fonction de leurs capacités ŕ s'adapter au marché. -Au Danemark volonté du gouvernement de réduire les budgets de l'éducation de 15% sur trois ans. Six mille étudiant-e-s sont entrés en plus dans le systčme SANS financement supplémentaire. -En Espagne, instauration de la L.O.U (Ley Organica de Universidades), qui veut faire fonctionner les universités sous un strict critčre de management (faire entrer les entreprises dans les universités, et encourager les Universités ŕ se financer en se mettant en concurrence pour de fonds privés); restriction des bourses; augmentation des aides des universités prouvées; chaque année, baisse du pourcentage du P.I.B. destiné ŕ l'enseignement supérieur (0.8% en Espagne, contre 1.33% en moyenne, en Europe) -En Italie, préparation d'un plan pour privatiser les Universités et les écoles. -Au Portugal, depuis cinq ans, droits d'inscription de 300 (salaire minimum imposé: 350 euros); réduction considérable du budget de l'enseignement supérieur. A l'université de Coimbra, budget réduit de 4% alors que le précédant étais tout juste suffisant pour payer les profs). -En Turquie, de nouvelles lois sont en préparation, afin d'ętre pręts pour les A.G.C.S. CES REFORMES NE SONT PAS UNE FATALITE : Face ces réformes, de nombreuses grčves et des actions étudiantes se mettent en place un peu partout en Europe. Comme vous en avez peut ętre entendu parler, les étudiant-e-s de l'université Toulouse le Mirail sont en grčve depuis le 5 novembre, D'autres fracs ont rejoint le mouvement. De nombreuses Assemblées Générales, accompagnées d'actions informatives se tiennent un peu partout (cela concerne environ 25 universités); Des comités de lutte s'activent dans les facs de Caen, Besançon, Bordeaux, Brest, Marseille, Montpellier, Toulouse, Paris, Poitiers et Rennes. La mobilisation se met aussi en place du coté des lycéen-e-s, qui se réunissent, informent leurs camarades (beaucoup ne sont męme pas au courant que le deug (bac+2) qu'ils comptaient préparer va etre suprimé) et agissent. Si vous vous sentez concernés par ses réformes, et que vous voulez faire Bouger les choses, IL EXISTE DES MOYENS : L'information étant trčs mal relayée par les moyens officiels, il est important d'attirer l'attention de tous sur ces réformes. Nous appelons ŕ la solidarité des internautes pour nous aider ŕ faire passer cette information. Vous pouvez : -Lancer le débat autour de vous. Quel systčme éducatif veut on en France? Quels seraient les conséquences d'un systčme éducatif concurrentiel? Doit on professionaliser les filičres générales? Est t'il raisonnable de parler d'une éducation "rentable"? -Faire suivre cet e-mail ŕ un maximum de personnes. -Envoyer - éventuellement de façon massive - des courriers, mails, fax... Aux instances officielles et aux médias, pour leur signifier votre désaccord avec ces réformes. Vous pourrez trouvez les coordonnées de ceux-ci, ainsi que comment envoyer gratuitement des fax via Internet sans télécopieur, ŕ la fin de ce mail. -ETUDIANTS: -Participer aux Assemblées générales d'informations et aux comités de lutte sur votre fac, ou en organiser s'il n'y en a pas. Si vous ętes intéressés pour monter un mouvement sur votre fac, nous pouvons vous donner toutes les informations nécessaires pour vous aider, pour cela, prenez contact avec les étudiant-e-s en lutte de Toulouse le Mirail en appelant le 05-61-50-38-34, ou par mail: mailenlutte@ouvaton.org -En discuter avec les autres étudiant-e-s, vous pouvez vous organiser en petits groupes et passer des les salles de cours et amphithéâtres pour informer et lancer le débat sur ces réformes. -Créer et distribuer des tracts d'information. -Occuper ou bloquer systématiquement l'accčs de la salle ou sičge le conseil d'administration de votre fac dčs que celui-ci doit se tenir. En empęchant ainsi la tenue de votre conseil d'administration, vous l'empęchez de décider l'application des réformes sur votre fac. -PROFESSEUR DU SECONDAIRE ET DU SUPERIEUR: -Prendre quelques minutes en cours pour informer vos élčves ou étudiants de ce qu'il se passe, les appeler ŕ s'informer, et ŕ en discuter autour d'eux. L'information étant trčs mal relayée, Nous comptons sur votre role pour sensibiliser vos élčves ou étudiants sur ce qui peut les attendre. -Faire passer ce message ŕ vos collčgue, vous pouvez aussi l'imprimer et l'afficher en salle des professeurs. -LYCEENS: -Vous informer sur ces réformes, et en discuter autour de vous. -Essayer de passer dans les salles de cours pour expliquer aux autres ce qui les attend avec ces réformes. -Si vous souhaitez monter un mouvement, et que vous voulez de l'aide, nous pouvons vous donner toutes les informations utiles, les contacts avec les autres groupes de lycéens mobilisés en France, pour cela prenez contact avec la commission lycéens du Mirail en appelant le 05-61-50-38-34, ou en nous envoyant un mail a: mirailenlutte@ouvaton.org Ce que nous revendiquons: 1. Pour éviter une mise ŕ disposition de l'université aux entreprises et la mise en concurrence des facultés, des filičres et des étudiants, qu'induisent les décrets n°2002-481 et 482 relatifs aux LMD (licence, master, doctorat ou 3/5/8) et aux ECTS, qui créeraient des conditions pédagogiques encore plus inégales, nous demandons leur abrogation ; nous réaffirmons notre opposition ŕ la privatisation en cours de l'enseignement supérieur ; 2. Le maintien du cadre national des diplômes, qui garantit les conditions de travail et de salaire dans les entreprises et les administrations : " En premier lieu, il faut fonder sur le dispositif d'évaluation la valeur du diplôme national [?] La qualité d'un diplôme national ne saurait ętre reconnue sur la base de critčres purement formels ; c'est la consistance réelle qui doit ętre appréciée, consistance des projets de formation comme des résultats déjŕ obtenus " (Circulaire du Ministčre de la Jeunesse, de l'éducation Nationale et de la Recherche du 14 novembre 2002 aux présidents d'université et aux recteurs d'académie, chanceliers des universités) ; 3. La reconnaissance européenne des diplômes ; 4. En réaction au projet visant ŕ amener l'étudiant ŕ financer de plus en plus ses études : " Internationalisation of Higher Education " (Rapport de l'OCDI 1996), un rapport qui préconise " un engagement plus important de la part des étudiants dans le financement d'une grande partie de coűts de leur éducation ", nous demandons la gratuité de l'enseignement, un véritable réengagement de l'état, et un véritable service public de l'éducation ; 5. Nous refusons la suppression du statut des MI /SE (pions), qui apporte aux étudiants une aide sociale adaptée (ce poste ne leur serait plus réservé, mais également ouvert aux jeunes retraités et femmes aux foyers), et demandons au contraire leur embauche massive (ils sont, du fait de leur age et de leur condition d'étudiant, les plus ŕ męme d'apporter un soutien scolaire et moral aux élčves de collčge et de lycée); 6. La titularisation de tout le personnel précaire dans l'enseignement (ces titularisations sont la condition nécessaire pour restaurer la qualité pédagogique et humaine d'un véritable enseignement public) ; ------------------------------------------------------------------------ Voici quelques coordonnées, Vous pouvez envoyer des courriers, mails, fax... a: -Votre académie; La liste des contacts des différentes académies se trouve sur: http://www.education.gouv.fr/syst/acad.htm -Le Ministčre de l'éducation nationale: -Par internet: enseignement secondaire: directeur.desco@education.gouv.fr enseignement supérieur: sup-info@education.gouv.fr -Par courrier: ministčre de l'éducation nationale 110 rue de grenelle 75007 Paris. -Le Ministre de la recherche et de la technologie: courrier.ministre@recherche.gouv.fr -Les médias: Le Monde; siege social-standard; 21Bis r Claude Bernard 75005 PARIS télécopie : 01 42 17 21 21 courrier-des-lecteurs@lemonde.fr mediateur@lemonde.fr Libération: http://www.liberation.fr/courrier/mail.php?f=1&id=redacchef Le figaro; 37 r Louvre 75081; Paris Cedex 02 http://groupe.lefigaro.fr/menu/index_contact.php télécopie : 01 42 21 22 99 France télévision; 7 esplanade Henri de France; 75015 75907 PARIS CEDEX 15 PARIS médiatrice@francetv.fr Arte: http://www.france5.fr/contact/email.cfm http://faq.arte.fr/faq/contact/index_f.cfm Télécopie: 03-88-14-21-60 TF1; 1 quai du Point du Jour; 92100 Boulogne Billancourt telespec@tf1.fr Canal +: Laurence Gallot; Directeur de la comlunication; CANAL+ GROUPE. Laurence.gallot@canal-plus.com télécopie=01-44-25-19-42 M6; 89 av Charles de Gaulle; 92575 Neuilly sur Seine cedex. http://212.155.75.26/m6boutique/contact/html/m6contact.htm Télécopie: 01-41-92-66-10 La Dépeche du midi; avenue Jean-Baylet; 31095 Toulouse cedex. http://www.ladepeche.com/dep_mel.asp redaction@ladepeche.fr Télécopie: 05.62.11.34.59 TLT; 3 pl Alfonse Jourdain 31000 TOULOUSE. Télécopie: 05-61-21-24-71 Les Inrockuptibles; 144, rue de Rivoli; 75001 Paris. c.fevret@inrocks.com Télécopie: 01 42 44 16 00 Technikart; 2 r Roquette 75011 PARIS Télécopie: 01 43 14 33 40 Si vous n'avez pas de télécopieur, vous pouvez envoyer gratuitement des fax en passant par internet: créez un compte sur: http://www.ifrance.com/_hmail/ident (choisissez le compte gratuit). Entrez dans la boite aux lettres du compte créé, cliquez dans la barre horizontale bleu du haut sur "les plus", puis sur "envoyer", en dessou de "fax gratuit". From mal@lemburg.com Fri Jan 10 20:44:12 2003 From: mal@lemburg.com (M.-A. Lemburg) Date: Fri, 10 Jan 2003 21:44:12 +0100 Subject: [XML-SIG] Tr: Ou va =?ISO-8859-1?Q?l=27=E9ducation_=3F!=3F?= In-Reply-To: <37631.824195717593600.648417@localhost> References: <37631.824195717593600.648417@localhost> Message-ID: <3E1F309C.6020606@lemburg.com> julou@infographers.net wrote: > Le gouvernement fran=E7ais =E0 r=E9cemment fait passer des r=E9formes q= ui=20 > suscitent de profondes inqui=E9tudes dans toute la communaut=E9 > universitaire (=E9tudiant-e-s, professeurs, et personnel). Elles pourra= ient > amener =E0 se mettre en place un syst=E8me =E9ducatif tr=E8s in=E9galit= aire en=20 > France, analogue au syst=E8me =E9ducatif am=E9ricain. All very nice, but I don't see a single line mention XML or Python which this list is all about. Also, the list language is English. Since your request is tragetted at French readers, please use an appropriate French mailing lists or newsgroups. Thanks, --=20 Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From marvin.davis@ziftdavis.com Sat Jan 11 02:23:05 2003 From: marvin.davis@ziftdavis.com (Marvin Davis) Date: Fri, 10 Jan 2003 18:23:05 -0800 Subject: [XML-SIG] Conferencing Business Message-ID: <200301101823325.SM00896@marvin.davis@ziftdavis.com>
 
Great Income Opportunity Now Available...
We are now offering excellent income opportunities to Individuals, Entrepreneurs, Sales Organizations, VARs, Integrators, Small/Medium Businesses and Corporations interested in earning commissions in the fast growing web conferencing markets.  
Become a "BUSINESS ALLIANCE PARTNER"
This program is a proven turn-key business opportunity for individuals as well as experienced sales organizations to earn monthly reoccurring commissions on every customer using your own "co-branded web conferencing service" 




"Unlike other products,
businesses NEED and WANT
 web conferencing services
at an affordable price".






BENEFITS:
  • NO RISK !
  • NO COST !
  • YOUR OWN C0-BRANDED WEBSITE ! (sample)
  • Each customer earns you money !
  • We do all the work including billing !
  • Free 3 day trials from your website !
  • Our system automatically tracks your customers
  • View Your Statistics in live time
  • Commissions on the 15th of every month
  • Get credit for Mail, Fax, Online, or Phone Orders
  • All you need to do is advertise your own conferencing website!

HOW IT WORKS:

Total Active Paying Customers  One Time
Commission
Monthly
Re-Occurring
1-15 customers

$10

16-25 customers

$15

26-50 customers  

20%

50-100 customers  

25%

Over 100 customers  

30%

PARTICIPATION REQUIREMENTS

To become a "Business Alliance Partner" you need the following:

  • Have an active webconference.com account. ( sign up now! )
    It's that easy! 

This is an amazing opportunity not available by similar competing products.

WHAT IS MY REALISTIC INCOME POTENTIAL?

The average current income is $42,115 the first year and $91,786 the second year. The average growth is about 15% for the second year and 23% the third year.  Like any other business, some months are traditionally better than others.  These are our current average statistics per month:

Part Time Associates  Sell 9-20 Accounts per month!

Jan Feb March April May June July Aug Sept Oct Nov Dec Total
Average
Clients Sold
Per Month
9 15 12 17 9 18 9 17 19 20 11 9
Your Total
Customers
9 24 36 53 62 80 89 106 125 145 156 165
Commissions $90 $195 $497 $915 $1,070 $1,380 $1,536 $2,195 $2,587 $3,002 $3,231 $3,416 $20,115

Second Year @ 15% growth:

$43,248

Third Year @ 23% growth:

$96,445

Full Time Associates Sell 9-45 Accounts per month!

Jan Feb March April May June July Aug Sept Oct Nov Dec Total
Average
Clients Sold
Per Month
9 19 26 32 36 39 29 33 40 45 15 9
Your Total
Customers
9 28 54 86 122 161 190 223 263 308 323 332
Commissions $90 $389 $934 $1,486 $2,526 $3,334 $3,934 $4,617 $5,445 $6,376 $6,687 $6,873 $42,691

Second Year @ 15% growth:

$91,786

Third Year @ 23% growth:

$204,684

Experienced Marketers Sell 9 - 150 Accounts per month!

Jan Feb March April May June July Aug Sept Oct Nov Dec Total
Average
Clients Sold
Per Month
9 26 52 74 108 118 89 78 126 150 53 18
Your Total
Customers
9 35 87 161 269 387 476 554 680 830 883 901
Commissions $90 $483 $1,507 $3,340 $5,569 $8,020 $9,855 $11,470 $14,076 $17,190 $18,280 $18,650 $108,530

Second Year @ 15% growth:

$233,340

Third Year @ 23% growth:

$520,350
Call Now @ 800-695-3355 or Click Here For More Info
 

This email is not sent unsolicited. This message is sent to subscribers ONLY.
To unsubscribe please click here.

From noreply@sourceforge.net Sat Jan 11 08:53:37 2003 From: noreply@sourceforge.net (SourceForge.net) Date: Sat, 11 Jan 2003 00:53:37 -0800 Subject: [XML-SIG] [ pyxml-Patches-666141 ] UnboundLocalError occurs when dumping xbel Message-ID: Patches item #666141, was opened at 2003-01-11 21:53 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=306473&aid=666141&group_id=6473 Category: XBEL Group: None Status: Open Resolution: None Priority: 5 Submitted By: Simon Lieschke (slieschke) Assigned to: Nobody/Anonymous (nobody) Summary: UnboundLocalError occurs when dumping xbel Initial Comment: The error effectively makes the dump_xbel method on the Bookmarks class unusable. This patch fixes the problem. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=306473&aid=666141&group_id=6473 From rodrigobamboo@terra.com.br Mon Jan 13 15:24:55 2003 From: rodrigobamboo@terra.com.br (Rodrigo B. de Oliveira) Date: 13 Jan 2003 13:24:55 -0200 Subject: [XML-SIG] xml.dom.minidom.Document.createTextNode does not accept str subclasses Message-ID: <1042471500.1056.28.camel@np072> The way CharacterData checks for the stringness of the data argument does not allow str subclasses. I figured that the reason the code is testing for type equality instead of type compatibility (isinstance) is probably compatibility with python versions were isinstance was not available. Is that correct? If so, how about having something like this? try: isinstance def _isString(data): return isinstance(data, _StringTypes)# is this 2.2 only? except NameError: def _isString(data): return type(data) in _StringTypes class CharacterData(Node): def __init__(self, data): if not _isString(data): raise TypeError, "node contents must be a string" Any thoughts? I will submit a patch later... Rodrigo From fdrake@acm.org Mon Jan 13 17:09:03 2003 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Mon, 13 Jan 2003 12:09:03 -0500 Subject: [XML-SIG] xml.dom.minidom.Document.createTextNode does not accept str subclasses In-Reply-To: <1042471500.1056.28.camel@np072> References: <1042471500.1056.28.camel@np072> Message-ID: <15906.62127.918178.121887@grendel.zope.com> Rodrigo B. de Oliveira writes: > The way CharacterData checks for the stringness of the data argument > does not allow str subclasses. What version of PyXML are you using? For 0.8 and 0.8.1, this problem should be solved, but you aren't allowed to simply call the constructor any more; that doesn't enforce all the invariants directly. You'll need to call the createTextNode() method of the document object. > I figured that the reason the code is testing for type equality instead > of type compatibility (isinstance) is probably compatibility with python > versions were isinstance was not available. Is that correct? The current version of the code provides a suitable isinstance() when needed; see the xml.dom.minicompat module for the specific code if you're interested. > If so, how about having something like this? ... > class CharacterData(Node): > def __init__(self, data): > if not _isString(data): > raise TypeError, "node contents must be a string" But, as noted above, there isn't a CharacterData.__init__() any more. -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From rodrigobamboo@terra.com.br Mon Jan 13 22:03:16 2003 From: rodrigobamboo@terra.com.br (Rodrigo B. de Oliveira) Date: 13 Jan 2003 20:03:16 -0200 Subject: [XML-SIG] xml.dom.minidom.Document.createTextNode does not accept str subclasses In-Reply-To: <15906.62127.918178.121887@grendel.zope.com> References: <1042471500.1056.28.camel@np072> <15906.62127.918178.121887@grendel.zope.com> Message-ID: <1042495397.1316.5.camel@dhcppc0> Uops... Sorry, my bad. I thought I had the latest PyXML at the office but as it turned out I had it installed at home only. Thanks and sorry again for the incovenience! Rodrigo > > Rodrigo B. de Oliveira writes: > > The way CharacterData checks for the stringness of the data argument > > does not allow str subclasses. > > What version of PyXML are you using? For 0.8 and 0.8.1, this problem > should be solved, but you aren't allowed to simply call the > constructor any more; that doesn't enforce all the invariants > directly. You'll need to call the createTextNode() method of the > document object. > > > I figured that the reason the code is testing for type equality instead > > of type compatibility (isinstance) is probably compatibility with python > > versions were isinstance was not available. Is that correct? > > The current version of the code provides a suitable isinstance() when > needed; see the xml.dom.minicompat module for the specific code if > you're interested. > > > If so, how about having something like this? > ... > > class CharacterData(Node): > > def __init__(self, data): > > if not _isString(data): > > raise TypeError, "node contents must be a string" > > But, as noted above, there isn't a CharacterData.__init__() any more. > > > -Fred > > -- > Fred L. Drake, Jr. > PythonLabs at Zope Corporation > > _______________________________________________ > XML-SIG maillist - XML-SIG@python.org > http://mail.python.org/mailman/listinfo/xml-sig > From fdrake@acm.org Mon Jan 13 22:10:01 2003 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Mon, 13 Jan 2003 17:10:01 -0500 Subject: [XML-SIG] xml.dom.minidom.Document.createTextNode does not accept str subclasses In-Reply-To: <1042495397.1316.5.camel@dhcppc0> References: <1042471500.1056.28.camel@np072> <15906.62127.918178.121887@grendel.zope.com> <1042495397.1316.5.camel@dhcppc0> Message-ID: <15907.14649.309363.46396@grendel.zope.com> Rodrigo B. de Oliveira writes: > Uops... Sorry, my bad. > > I thought I had the latest PyXML at the office but as it turned out I > had it installed at home only. Not a problem! -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From webmaster@pferdemarkt.ws Wed Jan 15 12:35:37 2003 From: webmaster@pferdemarkt.ws (webmaster@pferdemarkt.ws) Date: Wed, 15 Jan 2003 04:35:37 -0800 Subject: [XML-SIG] Pferdemarkt.ws informiert! Newsletter 01/2003 Message-ID: <200301151235.EAA08829@eagle.he.net> http://www.pferdemarkt.ws Wir sind in 2003 erfolgreich in des neue \"Pferdejahr 2003 gestartet. Für den schnellen Erfolg unseres Marktes möchten wir uns bei Ihnen bedanken. Heute am 15. Januar 2003 sind wir genau 14 Tage Online! Täglich wächst unsere Datenbank um ca. 30 neue Angebote. Stellen auch Sie als Privatperson Ihre zu verkaufenden Pferde direkt und vollkommen Kostenlos ins Internet. Zur besseren Sichtbarmachung Ihrer Angebote können SIe bis zu ein Bild zu Ihrer Pferdeanzeige kostenlos einstellen! Klicken Sie hier um sich direkt einzuloggen http://www.Pferdemarkt.ws Kostenlos Anbieten, Kostenlos Suchen! Direkt von Privat zu Privat! Haben Sie noch Fragen mailto: webmaster@pferdemarkt.ws From mcfletch@rogers.com Wed Jan 15 13:29:41 2003 From: mcfletch@rogers.com (Mike C. Fletcher) Date: Wed, 15 Jan 2003 08:29:41 -0500 Subject: [XML-SIG] Replacing a Java tool-chain with 4Suite? Message-ID: <3E256245.3010306@rogers.com> I've got a whole mess (word chosen deliberately :) ) of DocBook-XML documents (or more properly, document fragments) which comprise the PyOpenGL manual. This set of files was originally converted to pdf, html-help, latex, and html by a Java toolchain (which is no longer functional, for reasons I haven't yet tracked down) including: Saxon DocBook XSL Sun's Entity Resolver Oasis' Docbook Catalog WebEQ (for converting mathml to png) Now, as far as I can see, 4Suite's 4xslt is an XSL processor similar to Saxon, with built-in entity resolution. The XSL distro is just data, as is the Catalog (and the catalog's just for entity resolution anyway AFAICS). So, I would expect that I could just run 4xslt across the xml and xsl files and get a transformed file. However, I note that the 4Suite docs talk about using a subset of DocBook, rather than DocBook itself. And the 4suite parser seems to choke on the DocBook 4.2 dbcentx.mod file: S:\pyopenglbuild\PyOpenGL2>4xslt --trace -v --outfile=doc/test.xml doc/manual/manual.xml doc/xsl/merge.xsl Source document (file:///S|/pyopenglbuild/PyOpenGL2/doc/manual/manual.xml): XML parse error in http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod at line 308, column 10: Internal error: External PE references not allowed in declarations So, the question is; are (and/or how are) people using DocBook with 4Suite? Is it known to work? Is there some specialised version of DocBook's DTD for 4Suite? Basically I'm trying to decide whether to put my time into getting the Java toolchain to work (and then getting it working for all developers), or whether to jump ship to a Python version of the toolchain. Basic problem description: Original OpenGL docs in DocBook format, a few hundred individual files with trees. PyOpenGL call-signature docs, in DocBook format, again, a few hundred individual files with refentry trees. manual.xml, reference.xml (and a few similar files) which use SYSTEM entity refs to include the PyOpenGL-specific reference docs above. merge.xsl, which processes the PyOpenGL refentry trees to include the generic original documentation. Once the files are in docbook format we're using standard (Linux) formatting programs to output the DocBook files AFAICS. Suggestions welcome, Mike _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ From uche.ogbuji@fourthought.com Wed Jan 15 15:15:22 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: Wed, 15 Jan 2003 08:15:22 -0700 Subject: [XML-SIG] Replacing a Java tool-chain with 4Suite? In-Reply-To: Message from "Mike C. Fletcher" of "Wed, 15 Jan 2003 08:29:41 EST." <3E256245.3010306@rogers.com> Message-ID: > I've got a whole mess (word chosen deliberately :) ) of DocBook-XML > documents (or more properly, document fragments) which comprise the > PyOpenGL manual. This set of files was originally converted to pdf, > html-help, latex, and html by a Java toolchain (which is no longer > functional, for reasons I haven't yet tracked down) including: > > Saxon > DocBook XSL > Sun's Entity Resolver > Oasis' Docbook Catalog > WebEQ (for converting mathml to png) > > Now, as far as I can see, 4Suite's 4xslt is an XSL processor similar to > Saxon, with built-in entity resolution. The XSL distro is just data, as > is the Catalog (and the catalog's just for entity resolution anyway > AFAICS). So, I would expect that I could just run 4xslt across the xml > and xsl files and get a transformed file. > > However, I note that the 4Suite docs talk about using a subset of > DocBook, rather than DocBook itself. That's something entirely different. We use a Docbook subset for our own docs. 4Suite does support full docbook and the Norm Walsh stylesheets, as many reports confirm. > And the 4suite parser seems to > choke on the DocBook 4.2 dbcentx.mod file: > > S:\pyopenglbuild\PyOpenGL2>4xslt --trace -v --outfile=doc/test.xml > doc/manual/manual.xml doc/xsl/merge.xsl > Source document > (file:///S|/pyopenglbuild/PyOpenGL2/doc/manual/manual.xml): XML > parse error in http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod at > line 308, column 10: Internal error: External PE references not allowed > in declarations Hmm. By using "-v" (I usually don't, for the sake of speed), you're using xmlproc. xmlproc is checking the DTD for validity and giving that error. In my experience, xmlproc isn't the fastest parser out there, but it is one of the most scrupulous when it comes to checking against DTD. Therefore I think it is just as likely that this is an actual problem with the Sourceforge Docbook DTD as it is with xmlproc. Since Norm mostly tests with Java parsers, he wouldn't know of a problem if they didn't report them. So I may be wrong in my hunch, but I suggest you do this, fo rthe general good: run xmlproc_val doc/test.xml You should get the same error, which you can post to the Docbook mailing list to see if it's truly a Docbook bug. > So, the question is; are (and/or how are) people using DocBook with > 4Suite? I use it all the time, but in non-validating mode. I know others do, but I don't know whether they use validating or non-validating mode. Docbook is still one of the few areas where Saxon is faster and uses less memory than 4xslt, a disparity we're working on, but it does work. > Is it known to work? Yep. Until you figure out whether the error you see is real or spurious, try without the -v. You should get the same result, since the domlette parser does read the external subset (though it doesn't validate against it). > Is there some specialised version of > DocBook's DTD for 4Suite? Not that I know of. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html 4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4su ite5-i/ XML class warfare - http://www.adtmag.com/article.asp?id=6965 MusicBrainz metadata - http://www-106.ibm.com/developerworks/xml/library/x-thi nk14.html From veillard@redhat.com Wed Jan 15 15:44:02 2003 From: veillard@redhat.com (Daniel Veillard) Date: Wed, 15 Jan 2003 10:44:02 -0500 Subject: [XML-SIG] Replacing a Java tool-chain with 4Suite? In-Reply-To: ; from uche.ogbuji@fourthought.com on Wed, Jan 15, 2003 at 08:15:22AM -0700 References: Message-ID: <20030115104402.T19297@redhat.com> On Wed, Jan 15, 2003 at 08:15:22AM -0700, Uche Ogbuji wrote: > Docbook DTD as it is with xmlproc. Since Norm mostly tests with Java parsers, > he wouldn't know of a problem if they didn't report them. lot of people also use xsltproc for DocBook processing, and the libxml2 DTD parsing code check well formedness exactly per the spec xmllint --valid --noout doc/test.xml should detect if there is an error and where Daniel -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From uche.ogbuji@fourthought.com Wed Jan 15 15:49:28 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: Wed, 15 Jan 2003 08:49:28 -0700 Subject: [XML-SIG] Replacing a Java tool-chain with 4Suite? In-Reply-To: Message from Daniel Veillard of "Wed, 15 Jan 2003 10:44:02 EST." <20030115104402.T19297@redhat.com> Message-ID: > On Wed, Jan 15, 2003 at 08:15:22AM -0700, Uche Ogbuji wrote: > > Docbook DTD as it is with xmlproc. Since Norm mostly tests with Java parsers, > > he wouldn't know of a problem if they didn't report them. > > lot of people also use xsltproc for DocBook processing, and the > libxml2 DTD parsing code check well formedness exactly per the spec > xmllint --valid --noout doc/test.xml > > should detect if there is an error and where Sure. But my point is that he is getting an error message from *xmlproc*, which claims to support *validity* per the spec (not just well-formedness, which is not the issue here). My suggestion was that Mike post the xmlproc error to the Docbook mailing list where it can be discussed whether it's a bug in xmlproc or in Docbook/XML. It would be nice if he did this independently of what tools he eventually chose for his processing. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html 4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4su ite5-i/ XML class warfare - http://www.adtmag.com/article.asp?id=6965 MusicBrainz metadata - http://www-106.ibm.com/developerworks/xml/library/x-thi nk14.html From rodrigob@interact-tv.net Wed Jan 15 17:22:22 2003 From: rodrigob@interact-tv.net (Rodrigo B. de Oliveira) Date: 15 Jan 2003 15:22:22 -0200 Subject: [XML-SIG] LookupError: unknown encoding: utf-8 under mod_python Message-ID: <1042651345.1406.82.camel@np072> data = context.content.document.toxml('utf-8') File "/usr/local/lib/python2.2/site-packages/_xmlplus/dom/minidom.py", line 40, in toxml return self.toprettyxml("", "", encoding) File "/usr/local/lib/python2.2/site-packages/_xmlplus/dom/minidom.py", line 49, in toprettyxml writer = codecs.lookup(encoding)[3](writer) LookupError: unknown encoding: utf-8 environment is: * python 2.2.2 * mod_python 3.0.1 * apache 2.0.43 * pyxml 0.8.1 I'm pretty sure that this problem is more related to mod_python than to pyxml since the same code works just fine when executed from the shell but maybe you know something about it... Do you? Thanks in advance, Rodrigo From dieter@handshake.de Wed Jan 15 22:29:01 2003 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 15 Jan 2003 23:29:01 +0100 Subject: [XML-SIG] Replacing a Java tool-chain with 4Suite? In-Reply-To: <3E256245.3010306@rogers.com> References: <3E256245.3010306@rogers.com> Message-ID: <15909.57517.528344.952332@gargle.gargle.HOWL> Mike C. Fletcher wrote at 2003-1-15 08:29 -0500: > I've got a whole mess (word chosen deliberately :) ) of DocBook-XML > documents (or more properly, document fragments) which comprise the > PyOpenGL manual. This set of files was originally converted to pdf, > html-help, latex, and html by a Java toolchain (which is no longer > functional, for reasons I haven't yet tracked down) including: > > Saxon > DocBook XSL > Sun's Entity Resolver > Oasis' Docbook Catalog > WebEQ (for converting mathml to png) > > Now, as far as I can see, 4Suite's 4xslt is an XSL processor similar to > Saxon, with built-in entity resolution. The XSL distro is just data, as > is the Catalog (and the catalog's just for entity resolution anyway > AFAICS). So, I would expect that I could just run 4xslt across the xml > and xsl files and get a transformed file. About 18 months ago, I switched from 4Suite to Saxon, because: * 4Suite processed DocBook/XML documents with Norman Walsh's XSLT stylesheets more than 10 times slower than Saxon. * It took more than 5 times as much memory * There have been many XSLT bugs in 4Suite leading to wrong rendering of the Docbook style sheets. Despite problem reports the bugs were not fixed. Time had passed and 4Suite is now surely better than 18 months ago. Nevertheless, you should make some checks whether it is now up to your tasks. Dieter From martin@v.loewis.de Wed Jan 15 23:03:39 2003 From: martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) Date: 16 Jan 2003 00:03:39 +0100 Subject: [XML-SIG] LookupError: unknown encoding: utf-8 under mod_python In-Reply-To: <1042651345.1406.82.camel@np072> References: <1042651345.1406.82.camel@np072> Message-ID: "Rodrigo B. de Oliveira" writes: > I'm pretty sure that this problem is more related to mod_python than to > pyxml since the same code works just fine when executed from the shell > but maybe you know something about it... Do you? Not with the details you provided. What is sys.path inside mod_python, and what is sys.builtin_module_names? Regards, Martin From jh@web.de Wed Jan 15 23:56:28 2003 From: jh@web.de (Juergen Hermann) Date: Thu, 16 Jan 2003 00:56:28 +0100 Subject: [XML-SIG] LookupError: unknown encoding: utf-8 under mod_python In-Reply-To: <1042651345.1406.82.camel@np072> Message-ID: On=2015=20Jan=202003=2015:22:22=20-0200,=20Rodrigo=20B.=20de=20Oliveira=20= wrote: > >=20=20=20=20data=20=3D=20context.content.document.toxml('utf-8') > >=20=20File=20"/usr/local/lib/python2.2/site-packages/_xmlplus/dom/minidom= .py", >line=2040,=20in=20toxml >=20=20=20=20return=20self.toprettyxml("",=20"",=20encoding) > >=20=20File=20"/usr/local/lib/python2.2/site-packages/_xmlplus/dom/minidom= .py", >line=2049,=20in=20toprettyxml >=20=20=20=20writer=20=3D=20codecs.lookup(encoding)[3](writer) > >LookupError:=20unknown=20encoding:=20utf-8 > > >environment=20is: >=09*=20python=202.2.2 >=09*=20mod_python=203.0.1 >=09*=20apache=202.0.43 >=09*=20pyxml=200.8.1 > >I'm=20pretty=20sure=20that=20this=20problem=20is=20more=20related=20to=20= mod_python=20than=20to >pyxml=20since=20the=20same=20code=20works=20just=20fine=20when=20executed= =20from=20the=20shell >but=20maybe=20you=20know=20something=20about=20it...=20Do=20you? No,=20it's=20a=20bug=20in=20Python=20itself=20that=20I=20did=20not=20happe= n=20to=20have=20the=20time=20to=20 describe=20yet.=20Does=20mod_python=20have=20a=20startup=20script=20that=20= runs=20in=20the=20Apache=20 PARENT,=20before=20forking? If=20you=20load=20any=20encodings=20used=20later=20there=20(by=20using=20c= odecs.lookup),=20things=20 will=20start=20to=20work. Ciao,=20J=FCrgen From mike@skew.org Thu Jan 16 02:06:06 2003 From: mike@skew.org (Mike Brown) Date: Wed, 15 Jan 2003 19:06:06 -0700 (MST) Subject: [XML-SIG] Replacing a Java tool-chain with 4Suite? In-Reply-To: <15909.57517.528344.952332@gargle.gargle.HOWL> "from Dieter Maurer at Jan 15, 2003 11:29:01 pm" Message-ID: <200301160206.h0G2665s069602@chilled.skew.org> Dieter Maurer wrote: > About 18 months ago, I switched from 4Suite to Saxon, because: > > * 4Suite processed DocBook/XML documents with Norman Walsh's XSLT > stylesheets more than 10 times slower than Saxon. This was resolved in July 2002, in time for the 0.12.0a3 release. http://lists.fourthought.com/pipermail/4suite/2002-July/003918.html 4xslt is now faster than Saxon in some cases, slower in others. For a quick check I ran just now, using DocBook XSLT 1.55, 4Suite took 18 secs while Saxon took 11, on my machine. In current CVS we've got a couple of things that are still in flux and that are inflating our processing time, so I expect the gap will narrow a bit by the time 0.12.0b1 is released. > * It took more than 5 times as much memory Memory usage is still higher than we'd like it to be, but should not be 5x. Running a comparison just now showed Saxon using 154 MB during a DocBook transform, while 4xslt crept up to 49 MB before it was done. Not entirely a fair comparison because the JVM needs its heap allocated in advance, but still much better than what you were seeing with the 0.11.x releases, I'm sure. > * There have been many XSLT bugs in 4Suite leading to wrong > rendering of the Docbook style sheets. > Despite problem reports the bugs were not fixed. In late 2001, after the 0.11.1 release, there was a complete code overhaul. We also started using SourceForge for bug tracking. I've also made it a personal priority, since joining the development effort, to identify and squash every conformance bug I can. At present, the outstanding XPath and XSLT bugs don't affect 99% of use cases. Output is almost always identical, save for inconsequential things like attribute quoting, to that of Saxon. Now that we can process the DocBook XSLT stylesheets, we use them to verify that we produce the same results as Saxon. If there are problems remaining, report them to the 4suite list and/or post about them on the bug tracker for the "foursuite" project on SourceForge. > Time had passed and 4Suite is now surely better than 18 months ago. > Nevertheless, you should make some checks whether it is now up to > your tasks. Good advice, no matter what processor one is considering. Mike -- Mike J. Brown | http://skew.org/~mike/resume/ Denver, CO, USA | http://skew.org/xml/ From mcfletch@rogers.com Thu Jan 16 02:40:04 2003 From: mcfletch@rogers.com (Mike C. Fletcher) Date: Wed, 15 Jan 2003 21:40:04 -0500 Subject: [XML-SIG] Replacing a Java tool-chain with 4Suite? In-Reply-To: <200301160206.h0G2665s069602@chilled.skew.org> References: <200301160206.h0G2665s069602@chilled.skew.org> Message-ID: <3E261B84.7060201@rogers.com> Well, I eventually tracked down some of the problems. (With Uche's help). There were missing /'s in tags of a set of files (which were included about 4 times via entity references). This was giving "unbalanced tag" errors when running the 4xslt transform, but not reporting the (included) file-name correctly (file was reported as being the root file, so the line-number was just weird, pointing in the middle of the DTD). Simply writing a Python script that loaded it manually gave me the names of the files that were causing the problems. If I'm correct, these missing ETAGs were being ignored by Saxon because they were reducible markup (in SGML parlance, don't know what it's called with XML), while the Python parsers required well-formed markup. When presented with the (opaque) error reports from 4xslt, I'd enabled validation in the hope that the error report would kick out more information, and in doing so tickled the DocBook-validation problem, and thus got side-tracked. (xmlproc_val does report errors on processing the docbook dtd, I've sent a message to the docbook list to that effect, as requested). Regarding speed, I must be mis-using something, or there may be a problem with our xsl script. I let the command: 4xslt -o test.xml doc\manual\manual.xml doc\xsl\merge.xsl run for close to three hours before killing it. It was running in constant memory (about 45MB), with 100% CPU utilisation for the entire run. Simply loading and pretty-printing the Python-specific template files (which are smaller than the original API docs, but not 100s of times smaller) only takes seconds (well, maybe a minute), so I'm thinking there's something getting into an infinite loop during the processing. Given the simplicity of the transformation in this case (just a merge by section name!) I may write the darned thing in Python to save time (I started out around 22 hours ago saying to myself "oh, guess I should regenerate the manual before I start working on the web-site" :) ). Anyway, thanks all for your efforts, Mike Mike Brown wrote: >Dieter Maurer wrote: > > >>About 18 months ago, I switched from 4Suite to Saxon, because: >> >> * 4Suite processed DocBook/XML documents with Norman Walsh's XSLT >> stylesheets more than 10 times slower than Saxon. >> >> > >This was resolved in July 2002, in time for the 0.12.0a3 release. >http://lists.fourthought.com/pipermail/4suite/2002-July/003918.html > >4xslt is now faster than Saxon in some cases, slower in others. For a quick >check I ran just now, using DocBook XSLT 1.55, 4Suite took 18 secs while Saxon >took 11, on my machine. In current CVS we've got a couple of things that are >still in flux and that are inflating our processing time, so I expect the gap >will narrow a bit by the time 0.12.0b1 is released. > > ... _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ From uche.ogbuji@fourthought.com Thu Jan 16 02:23:25 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: Wed, 15 Jan 2003 19:23:25 -0700 Subject: [XML-SIG] Replacing a Java tool-chain with 4Suite? In-Reply-To: Message from Dieter Maurer of "Wed, 15 Jan 2003 23:29:01 +0100." <15909.57517.528344.952332@gargle.gargle.HOWL> Message-ID: > Mike C. Fletcher wrote at 2003-1-15 08:29 -0500: > > I've got a whole mess (word chosen deliberately :) ) of DocBook-XML > > documents (or more properly, document fragments) which comprise the > > PyOpenGL manual. This set of files was originally converted to pdf, > > html-help, latex, and html by a Java toolchain (which is no longer > > functional, for reasons I haven't yet tracked down) including: > > > > Saxon > > DocBook XSL > > Sun's Entity Resolver > > Oasis' Docbook Catalog > > WebEQ (for converting mathml to png) > > > > Now, as far as I can see, 4Suite's 4xslt is an XSL processor similar to > > Saxon, with built-in entity resolution. The XSL distro is just data, as > > is the Catalog (and the catalog's just for entity resolution anyway > > AFAICS). So, I would expect that I could just run 4xslt across the xml > > and xsl files and get a transformed file. > About 18 months ago, I switched from 4Suite to Saxon, because: > > * 4Suite processed DocBook/XML documents with Norman Walsh's XSLT > stylesheets more than 10 times slower than Saxon. > > * It took more than 5 times as much memory > > * There have been many XSLT bugs in 4Suite leading to wrong > rendering of the Docbook style sheets. > Despite problem reports the bugs were not fixed. > > Time had passed and 4Suite is now surely better than 18 months ago. It certainly is. It's still a bit slower and uses about twice as much memory as Saxon on the docbook stylesheets (it beats Saxon on most other tasks I and others have tested it on). Jeremy, however, is preparing to check in changes that should help significantly with that. Having recently used 4Suite/Docbook in production systems, and fixed bugs that came up, I'm pretty confident that there are not more conformance bugs in 4Suite itself that are exposed by common uses of the Docbook stylesheet. > Nevertheless, you should make some checks whether it is now up to > your tasks. >From his message, this is exactly what Mike was doing. He has posted a message to the Docbook list to see whether the errors he saw when he enables validation are Docbook DTD or xmlproc errors (4Suite uses xmlproc in validating mode). This is a useful service to all. Mike does say that he doesn't need the validation flag, so he can probably use 4Suite with no problem. As Daniel pointed out, he can also use libxslt/Python with no problem. I'm sure Brian and co will point out that he can use pyana with no problem. In no case is he compelled to use Saxon. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html 4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4suite5-i/ XML class warfare - http://www.adtmag.com/article.asp?id=6965 MusicBrainz metadata - http://www-106.ibm.com/developerworks/xml/library/x-think14.html From uche.ogbuji@fourthought.com Thu Jan 16 03:16:06 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: Wed, 15 Jan 2003 20:16:06 -0700 Subject: [XML-SIG] Replacing a Java tool-chain with 4Suite? In-Reply-To: Message from "Mike C. Fletcher" of "Wed, 15 Jan 2003 21:40:04 EST." <3E261B84.7060201@rogers.com> Message-ID: > Well, I eventually tracked down some of the problems. (With Uche's help). > > There were missing /'s in tags of a set of files (which were included > about 4 times via entity references). This was giving "unbalanced tag" > errors when running the 4xslt transform, but not reporting the > (included) file-name correctly (file was reported as being the root > file, so the line-number was just weird, pointing in the middle of the > DTD). Simply writing a Python script that loaded it manually gave me the > names of the files that were causing the problems. If I'm correct, > these missing ETAGs were being ignored by Saxon because they were > reducible markup (in SGML parlance, don't know what it's called with > XML), while the Python parsers required well-formed markup. > > When presented with the (opaque) error reports from 4xslt, I'd enabled > validation in the hope that the error report would kick out more > information, and in doing so tickled the DocBook-validation problem, and > thus got side-tracked. (xmlproc_val does report errors on processing the > docbook dtd, I've sent a message to the docbook list to that effect, as > requested). > > Regarding speed, I must be mis-using something, or there may be a > problem with our xsl script. I let the command: > > 4xslt -o test.xml doc\manual\manual.xml doc\xsl\merge.xsl > > run for close to three hours before killing it. It was running in > constant memory (about 45MB), with 100% CPU utilisation for the entire > run. Simply loading and pretty-printing the Python-specific template > files (which are smaller than the original API docs, but not 100s of > times smaller) only takes seconds (well, maybe a minute), so I'm > thinking there's something getting into an infinite loop during the > processing. > > Given the simplicity of the transformation in this case (just a merge by > section name!) I may write the darned thing in Python to save time (I > started out around 22 hours ago saying to myself "oh, guess I should > regenerate the manual before I start working on the web-site" :) ). Can you post merge.xsl? I'm guessing it simply operates on Docbook section/title elements and thus could work with any Docbook source file? DO you use recursive templates in merge.xslt? It's really easy to get into an infinite loop with XSLT recursive templates. Based on the simplicity of the transform you're doing, it certainly looks like a really easy job using the sorts of genrrator/iterator tools I outline in http://www.xml.com/pub/a/2003/01/08/py-xml.html I like XSLT better than most, but it's not for every task. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html 4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4su ite5-i/ XML class warfare - http://www.adtmag.com/article.asp?id=6965 MusicBrainz metadata - http://www-106.ibm.com/developerworks/xml/library/x-thi nk14.html From rodrigob@interact-tv.net Thu Jan 16 13:51:32 2003 From: rodrigob@interact-tv.net (Rodrigo B. de Oliveira) Date: 16 Jan 2003 11:51:32 -0200 Subject: slightly OT: Re: [XML-SIG] LookupError: unknown encoding: utf-8 under mod_python In-Reply-To: References: Message-ID: <1042725094.4748.6.camel@np072> On Wed, 2003-01-15 at 21:56, Juergen Hermann wrote: > No, it's a bug in Python itself that I did not happen to have the time to > describe yet. Does mod_python have a startup script that runs in the Apache > PARENT, before forking? > Hmmm... I really don't know. The httpd.conf section related to mod_python is really simple: LoadModule python_module modules/mod_python.so AddHandler python-program .page PythonHandler nih.web.environment.modpythonenv PythonInterpPerDirective On nih.web.environment.modpythonenv is just a simple mod_python handler (where the xml generation occurs). Sorry but my experience with mod_python is really limited. Thanks, Rodrigo From Juergen Hermann" Message-ID: On 16 Jan 2003 11:51:32 -0200, Rodrigo B. de Oliveira wrote: >Sorry but my experience with mod_python is really limited. We have our own Python embedding (where the exact same problem occurs), = so I don't know either. For a possibly working brute-force fix, add a fitting= codecs.lookup to the site.py of the interpreter you are using in mod_pyt= hon. Ciao, J=FCrgen -- J=FCrgen Hermann, Developer WEB.DE AG, http://webde-ag.de/ From mal@lemburg.com Thu Jan 16 16:07:28 2003 From: mal@lemburg.com (M.-A. Lemburg) Date: Thu, 16 Jan 2003 17:07:28 +0100 Subject: slightly OT: Re: [XML-SIG] LookupError: unknown encoding: utf-8 under mod_python In-Reply-To: References: Message-ID: <3E26D8C0.8080606@lemburg.com> Juergen Hermann wrote: > On 16 Jan 2003 11:51:32 -0200, Rodrigo B. de Oliveira wrote: > > >>Sorry but my experience with mod_python is really limited. > > > We have our own Python embedding (where the exact same problem occurs), so I > don't know either. For a possibly working brute-force fix, add a fitting > codecs.lookup to the site.py of the interpreter you are using in mod_python. Could be that the problem you are seeing is related to: https://sourceforge.net/tracker/?func=detail&aid=663074&group_id=5470&atid=105470 -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From rodrigob@interact-tv.net Thu Jan 16 17:47:46 2003 From: rodrigob@interact-tv.net (Rodrigo B. de Oliveira) Date: 16 Jan 2003 15:47:46 -0200 Subject: slightly OT: Re: [XML-SIG] LookupError: unknown encoding: utf-8 under mod_python In-Reply-To: <3E26D8C0.8080606@lemburg.com> References: <3E26D8C0.8080606@lemburg.com> Message-ID: <1042739268.4753.9.camel@np072> Hmmmm... enlightening. On Thu, 2003-01-16 at 14:07, M.-A. Lemburg wrote: > Juergen Hermann wrote: > > On 16 Jan 2003 11:51:32 -0200, Rodrigo B. de Oliveira wrote: > > > > > >>Sorry but my experience with mod_python is really limited. > > > > > > We have our own Python embedding (where the exact same problem occurs), so I > > don't know either. For a possibly working brute-force fix, add a fitting > > codecs.lookup to the site.py of the interpreter you are using in mod_python. > > Could be that the problem you are seeing is related to: > > https://sourceforge.net/tracker/?func=detail&aid=663074&group_id=5470&atid=105470 > > -- > Marc-Andre Lemburg > CEO eGenix.com Software GmbH > _______________________________________________________________________ > eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... > Python Consulting: http://www.egenix.com/ > Python Software: http://www.egenix.com/files/python/ > > From mcfletch@rogers.com Thu Jan 16 21:47:19 2003 From: mcfletch@rogers.com (Mike C. Fletcher) Date: Thu, 16 Jan 2003 16:47:19 -0500 Subject: [XML-SIG] Replacing a Java tool-chain with 4Suite? In-Reply-To: References: Message-ID: <3E272867.2040709@rogers.com> This is a multi-part message in MIME format. --------------090202050003080909060208 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Well, I think I've got a functional Python-coded transform (attached for those following along at home). It doesn't yet do the setting of the "PyOpenGL.version" attribute because I don't see where the xsl version is getting that from. As I worked on it, however, I noticed a fairly strange effect which would seem relevant to the multi-hour running time of the 4xslt version. My original solution, based loosely on the original xsl, was to do something along these lines: find all "refentry" nodes in source, add to a mapping from refentry.id -> node for each refentry in dest (the template): search for nodes within refentry //*[@condition='replace'] using an XPath query search for nodes within the corresponding source refentry with the same nodeType and id attribute value using another XPath query. replace the first with the second That worked (for the first entry at least), but it was human-time slow (I'd guess about 5-10 seconds). From what I could tell, creating a context with a sub-node (not the document root) wasn't restricting the search to the sub-node, that is: Compile( ""//*[@condition='replace']"").evaluate( Context.Context( base, GetAllNs(base))) where base is a sub-node of the document wasn't restricting the search to base and its children, but was instead searching the whole document. (Or, for some reason, was unbelievably slow in searching the sub-set). If this is a general "feature", I can imagine the original xsl, which does at least 1 selection query per refentry (there are 325 of those) was bogging down in that. Don't really know (shrug). (Here's the line from the xsl that makes me think it's doing that query): My "solution" was to exploit a characteristic of the particular documents in that the replacement IDs are actually globally unique, so I can just do a straight mapping from id:originalnode instead of touching the refentry nodes at all. I _think_ that using ".//*[@condition='replace']" as the xpath might do the restrictions, but haven't found anything to back up the idea other than the original xsl source. BTW, Uche, your tutorials were of great help to me in getting this working. Thanks. Still haven't tried to convert to HTML yet, that's the next project. Enjoy, Mike Uche Ogbuji wrote: ... >>Given the simplicity of the transformation in this case (just a merge by >>section name!) I may write the darned thing in Python to save time (I >>started out around 22 hours ago saying to myself "oh, guess I should >>regenerate the manual before I start working on the web-site" :) ). >> >> > >Can you post merge.xsl? I'm guessing it simply operates on Docbook >section/title elements and thus could work with any Docbook source file? DO >you use recursive templates in merge.xslt? It's really easy to get into an >infinite loop with XSLT recursive templates. > >Based on the simplicity of the transform you're doing, it certainly looks like >a really easy job using the sorts of genrrator/iterator tools I outline in > >http://www.xml.com/pub/a/2003/01/08/py-xml.html > >I like XSLT better than most, but it's not for every task. > > > > -- _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ --------------090202050003080909060208 Content-Type: text/plain; name="testdom2.py" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="testdom2.py" """FourSuite-specific XML-documentation processing script There's something wrong with the xsl merge mechanism, so this module does the merge using direct Python manipulation of the files via the FourSuite Python XML tools. """ import sys, os from Ft.Xml import InputSource from Ft.Xml.XPath import Compile, Context from Ft.Xml.Domlette import GetAllNs, PrettyPrint, NonvalidatingReader try: import logging log = logging.getLogger( 'xmlmerge' ) logging.basicConfig() log.setLevel( logging.INFO ) except ImportError: log = None def load( source ): """Load a document from source as a DOM""" uri = 'file:'+ os.path.abspath(source).replace( "\\", "/" ) if log: log.info( "Loading source document %r", uri ) result = NonvalidatingReader.parseUri(uri) if log: log.debug( "Finished loading document %r", uri ) return result def save( doc, destination ): if log: log.info( "Saving document to %r", destination ) PrettyPrint(doc, open(destination,'w')) if log: log.debug( "Finished saving document %r", destination ) def finder( pattern ): """Create an xpath searcher for the given pattern""" return Compile( pattern ) def find( specifier, base ): """Find subnodes of base with given XPath specifier""" return finder(specifier).evaluate( Context.Context( base, GetAllNs(base)) ) REPLACEFINDER = finder( "//*[@condition='replace']") def main( rootFile, originalDirectory, destination ): """Load rootFile, merge with the docs in originalDirectory and write to destination""" prefixedDocs = [] set = {} for prefix in ['glut','glu','gle','gl']: filename = os.path.join(originalDirectory, prefix.upper(), 'reference.xml') doc = load(filename) for node in find( "//*[@id]", doc ): set[ node.getAttributeNS(None,'id')] = node prefixedDocs.append( (prefix, doc)) doc = load( rootFile ) for entry in find( "//*[@condition='replace']", doc ): # now, for each refentry, there is an "original" entry # from which we copy 90% of the data... id = entry.getAttributeNS(None,'id') if log: log.debug( "substitution for %r", id ) original = set.get( id ) if not original: if log: log.warn( "Unable to find substitution source for %r", id ) continue; # next entry entry.parentNode.replaceChild( original, entry ) save( doc, destination ) main( rootFile = os.path.abspath(sys.argv[1]), originalDirectory = os.path.abspath(os.path.join( os.path.dirname(sys.argv[1]), '..', 'original')), destination = os.path.abspath(sys.argv[2]), ) --------------090202050003080909060208-- From mcfletch@rogers.com Fri Jan 17 00:02:28 2003 From: mcfletch@rogers.com (Mike C. Fletcher) Date: Thu, 16 Jan 2003 19:02:28 -0500 Subject: [XML-SIG] Better recipe for saving a file with a doctype declaration? Message-ID: <3E274814.3030007@rogers.com> I'm using the following to write out my xml document with a doctype declaration. Is this the preferred way to go about it? doctype = implementation.createDocumentType( "book", "-//OASIS//DTD DocBook MathML Module V1.0//EN", "http://www.oasis-open.org/docbook/xml/mathml/1.0/dbmathml.dtd", ) newdoc = implementation.createDocument( None, "book", doctype ) newdoc.replaceChild( doc.documentElement, newdoc.documentElement ) save( newdoc, destination ) and on a related note, how does one specify the encoding for the document when writing (e.g. as "ISO-8859-1")? Mike _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ From mcfletch@rogers.com Fri Jan 17 01:07:53 2003 From: mcfletch@rogers.com (Mike C. Fletcher) Date: Thu, 16 Jan 2003 20:07:53 -0500 Subject: [XML-SIG] Yet more fun :) , 4xslt reports errors in docbook-xsl-1.59.1 Message-ID: <3E275769.4090609@rogers.com> Well, I've got the merged documentation automatically generated, and am starting into the docbook conversion. I'm starting out with the out-of-the-box docbook-xsl/html/chunk.xsl transformation to be sure the system is working before I see what alterations Tarn's made. However, when I run 4xslt with the manual and chunk.xsl, I'm told there's a syntax/parse error in the chunk-common.xsl file included by chunk.xsl. Since people have said they use the docbook-xsl packages with 4xslt, I must be mis-using it somehow, but I don't see how. Here's the 4xslt command-line I'm generating with distutils, and the error report it's generating: C:\bin\lang\py22\lib\site-packages\Ft\Share\Bin\4xslt.exe --define= S:\pyopenglbuild\PyOpenGL2\build\doc\manual.xml S:\pyopenglbuild\PyOpenGL2\doc\docbook-xsl\html\chunk.xsl Malformed expression: "($prev and $navig.showtitles != 0) or ($home != . or $nav.context = 'toc') or ($chunk.tocs.and.lots != 0 and $nav.context != 'toc') or ($next and $navig.showtitles != 0)" in the element at file:/S|/pyopenglbuild/PyOpenGL2/doc/docbook-xsl/html/chunk-common.xsl, line 707, column 2 parse error at line 1, column 87: reached end-of-input, expecting ')' error: command 'C:\bin\lang\py22\lib\site-packages\Ft\Share\Bin\4xslt.exe' failed with exit status 1 I don't see anything wrong with the code it's complaining about (all the ('s seem balanced), and position 87 is somewhere around the end of $home, nowhere near the end of the string AFAICS). Any ideas on what I'm doing wrong? Sorry for yet another dumb question, Mike _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ From mike@skew.org Fri Jan 17 03:34:48 2003 From: mike@skew.org (Mike Brown) Date: Thu, 16 Jan 2003 20:34:48 -0700 (MST) Subject: [XML-SIG] Yet more fun :) , 4xslt reports errors in docbook-xsl-1.59.1 In-Reply-To: <3E275769.4090609@rogers.com> "from Mike C. Fletcher at Jan 16, 2003 08:07:53 pm" Message-ID: <200301170334.h0H3YmVP073313@chilled.skew.org> Mike C. Fletcher wrote: > Well, I've got the merged documentation automatically generated, and am > starting into the docbook conversion. I'm starting out with the > out-of-the-box docbook-xsl/html/chunk.xsl transformation to be sure the > system is working before I see what alterations Tarn's made. However, > when I run 4xslt with the manual and chunk.xsl, I'm told there's a > syntax/parse error in the chunk-common.xsl file included by chunk.xsl. > > Since people have said they use the docbook-xsl packages with 4xslt, I > must be mis-using it somehow, but I don't see how. Here's the 4xslt > command-line I'm generating with distutils, and the error report it's > generating: > > C:\bin\lang\py22\lib\site-packages\Ft\Share\Bin\4xslt.exe > --define= > S:\pyopenglbuild\PyOpenGL2\build\doc\manual.xml > S:\pyopenglbuild\PyOpenGL2\doc\docbook-xsl\html\chunk.xsl > Malformed expression: "($prev and $navig.showtitles != 0) > or ($home != . or $nav.context = 'toc') > or ($chunk.tocs.and.lots != 0 > and $nav.context != 'toc') or ($next > and $navig.showtitles != 0)" in the element at > file:/S|/pyopenglbuild/PyOpenGL2/doc/docbook-xsl/html/chunk-common.xsl, > line 707, column 2 > parse error at line 1, column 87: reached end-of-input, expecting ')' > error: command > 'C:\bin\lang\py22\lib\site-packages\Ft\Share\Bin\4xslt.exe' failed with > exit status 1 > > I don't see anything wrong with the code it's complaining about (all the > ('s seem balanced), and position 87 is somewhere around the end of > $home, nowhere near the end of the string AFAICS). Yikes. This is clearly a bug in 4Suite's XPath parser (specifically, it's not liking anything to follow "."). Can't believe that one slipped through... Let's move this over to to 4suite list. xml-sig is not the appropriate forum. http://lists.fourthought.com/mailman/listinfo/4suite Mike -- Mike J. Brown | http://skew.org/~mike/resume/ Denver, CO, USA | http://skew.org/xml/ From martin@v.loewis.de Fri Jan 17 09:17:51 2003 From: martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) Date: 17 Jan 2003 10:17:51 +0100 Subject: [XML-SIG] Better recipe for saving a file with a doctype declaration? In-Reply-To: <3E274814.3030007@rogers.com> References: <3E274814.3030007@rogers.com> Message-ID: "Mike C. Fletcher" writes: > I'm using the following to write out my xml document with a doctype > declaration. Is this the preferred way to go about it? If you are using the DOM: Sure! If you need more stuff in the DOCTYPE declaration (such as an internal subset), you could also write it out yourself, and then only print the document root. > and on a related note, how does one specify the encoding for the > document when writing (e.g. as "ISO-8859-1")? If you have the latest PyXML, and if you are using minidom, you can use the encoding= argument of .toxml. Regards, Martin From uche.ogbuji@fourthought.com Fri Jan 17 15:29:17 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: Fri, 17 Jan 2003 08:29:17 -0700 Subject: [XML-SIG] Yet more fun :) , 4xslt reports errors in docbook-xsl-1.59.1 In-Reply-To: Message from "Mike C. Fletcher" of "Thu, 16 Jan 2003 20:07:53 EST." <3E275769.4090609@rogers.com> Message-ID: > Since people have said they use the docbook-xsl packages with 4xslt, I > must be mis-using it somehow, but I don't see how. Here's the 4xslt > command-line I'm generating with distutils, and the error report it's > generating: [SNIP] This was indeed a bug in the XPath parser, which Jeremy Kloth fixed in CVS last night. I haven't used the Docbook chunker for a while, so my guess is that the syntax that tripped our parser is a new modification. Certainly, I was using Chunker with 4XSLT just fine when I contributed the EXSLT chunker.xsl to the Docbook project: http://lists.oasis-open.org/archives/docbook/200106/msg00016.html Most of my use, and I'd suppose of a lot of others, of the Docbook stylesheets has been straight html/docbook.xsl and fo/docbook.xsl. If you'd like to verify that Jeremy's fix fors the trick to you, you can grab the current CVS snapshot: http://4suite.org/docs/4SuiteCVS.xml BTW, I shall open a bug report on SourceForge for the disputed xmlproc errors. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html 4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4su ite5-i/ XML class warfare - http://www.adtmag.com/article.asp?id=6965 MusicBrainz metadata - http://www-106.ibm.com/developerworks/xml/library/x-thi nk14.html From mcfletch@rogers.com Fri Jan 17 16:47:46 2003 From: mcfletch@rogers.com (Mike C. Fletcher) Date: Fri, 17 Jan 2003 11:47:46 -0500 Subject: [XML-SIG] Better recipe for saving a file with a doctype declaration? In-Reply-To: References: <3E274814.3030007@rogers.com> Message-ID: <3E2833B2.2000901@rogers.com> Okay, thanks for the confirmation. I am actually using 4suite, and have decided to just let 4xslt handle the encoding for now (too many other projects on the go to worry about it) :) . Enjoy, Mike Martin v. Löwis wrote: >"Mike C. Fletcher" writes: > > > >>I'm using the following to write out my xml document with a doctype >>declaration. Is this the preferred way to go about it? >> >> > >If you are using the DOM: Sure! If you need more stuff in the DOCTYPE >declaration (such as an internal subset), you could also write it out >yourself, and then only print the document root. > > > >>and on a related note, how does one specify the encoding for the >>document when writing (e.g. as "ISO-8859-1")? >> >> > >If you have the latest PyXML, and if you are using minidom, you can >use the encoding= argument of .toxml. > >Regards, >Martin > > >_______________________________________________ >XML-SIG maillist - XML-SIG@python.org >http://mail.python.org/mailman/listinfo/xml-sig > > > -- _______________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://members.rogers.com/mcfletch/ From noreply@sourceforge.net Mon Jan 20 17:53:40 2003 From: noreply@sourceforge.net (SourceForge.net) Date: Mon, 20 Jan 2003 09:53:40 -0800 Subject: [XML-SIG] [ pyxml-Bugs-671273 ] Spurious DTD parsing errors (docbook DTD) Message-ID: Bugs item #671273, was opened at 2003-01-20 17:53 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106473&aid=671273&group_id=6473 Category: xmlproc Group: None Status: Open Resolution: None Priority: 5 Submitted By: Uche Ogbuji (uche) Assigned to: Lars Marius Garshol (larsga) Summary: Spurious DTD parsing errors (docbook DTD) Initial Comment: xmlproc cannot handle the Docbook DTD. It raises errors Norm Walsh disputes arte correct. See http://lists.oasis-open.org/archives/docbook-apps/200301/msg00148.html ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106473&aid=671273&group_id=6473 From epablo@ldc.usb.ve Tue Jan 21 09:23:05 2003 From: epablo@ldc.usb.ve (LDC - Pablo Endres Lozada) Date: Tue, 21 Jan 2003 05:23:05 -0400 (VET) Subject: [XML-SIG] problem installing PyXML-0.7.1 and PyXML-0.8.1 Message-ID: Hi, I've been trying to install PyXML-0.7.1 and PyXML-0.8.1 on a SCO 5 server but it doesn't work. When I do the installation via distutils I get no errors but when I try to use the expat library y get the following error: >>> from xml.parsers import expat Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.2/site-packages/_xmlplus/parsers/expat.py", line 4, in ? from pyexpat import * ImportError: No module named pyexpat The pyexpat.so is in that directory and to try and make things work I copied it to the lib-dynload dir and it still doesn't work. Any Ideas on how to make it work? Thanks in advance -- Muchas personas creen que piensan, cuando en realidad sólo están reordenando sus prejuicios. - William James .-----------------------------------------------------------------. / .-. Pablo Endres Lozada .-. \ | / \ Laboratorio Docente de Computacion / \ | | |\_. | USB - Venezuela | /| | |\| | /| |\ | |/| | `---' | epablo@ldc.usb.ve | `---' | | | | | | |-----------------------------------------------------| | \ | | / \ / \ / `---' `---' From martin@v.loewis.de Tue Jan 21 21:38:08 2003 From: martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) Date: 21 Jan 2003 22:38:08 +0100 Subject: [XML-SIG] problem installing PyXML-0.7.1 and PyXML-0.8.1 In-Reply-To: References: Message-ID: LDC - Pablo Endres Lozada writes: > The pyexpat.so is in that directory and to try and make things > work I copied it to the lib-dynload dir and it still doesn't work. Please undo this copying. > Any Ideas on how to make it work? Perform import xml.parsers.pyexpat and report any errors that this produces. Regards, Martin From martin@v.loewis.de Wed Jan 22 08:37:57 2003 From: martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) Date: 22 Jan 2003 09:37:57 +0100 Subject: [XML-SIG] Preparing for PyXML 0.8.2 Message-ID: I'll be releasing PyXML 0.8.2 later this week. If you have any patches to incorporate, this would be a good time to commit them. Regards, Martin From epablo@ldc.usb.ve Wed Jan 22 01:02:59 2003 From: epablo@ldc.usb.ve (LDC - Pablo Endres Lozada) Date: Tue, 21 Jan 2003 21:02:59 -0400 (VET) Subject: [XML-SIG] problem installing PyXML-0.7.1 and PyXML-0.8.1 In-Reply-To: Message-ID: On 21 Jan 2003, Martin v. [iso-8859-15] Löwis wrote: > > Perform > > import xml.parsers.pyexpat > > and report any errors that this produces. > > Regards, > Martin > sg5ts1: /usr/lib/python2.2> python Python 2.2.1 (#3, Jan 21 2003, 16:37:50) [C] on sco_sv3 Type "help", "copyright", "credits" or "license" for more information. >>> import xml.parsers.pyexpat Traceback (most recent call last): File "", line 1, in ? ImportError: No module named pyexpat >>> Any ideas? -- Muchas personas creen que piensan, cuando en realidad sólo están reordenando sus prejuicios. - William James .-----------------------------------------------------------------. / .-. Pablo Endres Lozada .-. \ | / \ Laboratorio Docente de Computacion / \ | | |\_. | USB - Venezuela | /| | |\| | /| |\ | |/| | `---' | epablo@ldc.usb.ve | `---' | | | | | | |-----------------------------------------------------| | \ | | / \ / \ / `---' `---' From martin@v.loewis.de Wed Jan 22 14:32:31 2003 From: martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) Date: 22 Jan 2003 15:32:31 +0100 Subject: [XML-SIG] problem installing PyXML-0.7.1 and PyXML-0.8.1 In-Reply-To: References: Message-ID: LDC - Pablo Endres Lozada writes: > sg5ts1: /usr/lib/python2.2> python > Python 2.2.1 (#3, Jan 21 2003, 16:37:50) [C] on sco_sv3 > Type "help", "copyright", "credits" or "license" for more information. > >>> import xml.parsers.pyexpat > Traceback (most recent call last): > File "", line 1, in ? > ImportError: No module named pyexpat > >>> > > > Any ideas? Not yet, no. Please run "python -v", to see all things it tries to import. On a different path, please check whether pyexpat.so is marked executable, and, if not, whether making it executable changes anything. Regards, Martin From epablo@ldc.usb.ve Wed Jan 22 03:50:04 2003 From: epablo@ldc.usb.ve (LDC - Pablo Endres Lozada) Date: Tue, 21 Jan 2003 23:50:04 -0400 (VET) Subject: [XML-SIG] problem installing PyXML-0.7.1 and PyXML-0.8.1 In-Reply-To: Message-ID: On 22 Jan 2003, Martin v. [iso-8859-15] Löwis wrote: > > Not yet, no. Please run "python -v", to see all things it tries to > import. sg5ts1: /usr/lib/python2.2> python -v # /usr/lib/python2.2/site.pyc matches /usr/lib/python2.2/site.py import site # precompiled from /usr/lib/python2.2/site.pyc # /usr/lib/python2.2/os.pyc matches /usr/lib/python2.2/os.py import os # precompiled from /usr/lib/python2.2/os.pyc import posix # builtin # /usr/lib/python2.2/posixpath.pyc matches /usr/lib/python2.2/posixpath.py import posixpath # precompiled from /usr/lib/python2.2/posixpath.pyc # /usr/lib/python2.2/stat.pyc matches /usr/lib/python2.2/stat.py import stat # precompiled from /usr/lib/python2.2/stat.pyc # /usr/lib/python2.2/UserDict.pyc matches /usr/lib/python2.2/UserDict.py import UserDict # precompiled from /usr/lib/python2.2/UserDict.pyc # /usr/lib/python2.2/copy_reg.pyc matches /usr/lib/python2.2/copy_reg.py import copy_reg # precompiled from /usr/lib/python2.2/copy_reg.pyc # /usr/lib/python2.2/types.pyc matches /usr/lib/python2.2/types.py import types # precompiled from /usr/lib/python2.2/types.pyc # /usr/lib/python2.2/__future__.pyc matches /usr/lib/python2.2/__future__.py import __future__ # precompiled from /usr/lib/python2.2/__future__.pyc Python 2.2.1 (#3, Jan 21 2003, 16:37:50) [C] on sco_sv3 Type "help", "copyright", "credits" or "license" for more information. >>> import xml.parsers.pyexpat import xml # directory xml # xml/__init__.pyc matches xml/__init__.py import xml # precompiled from xml/__init__.pyc import _xmlplus # directory /usr/lib/python2.2/site-packages/_xmlplus # /usr/lib/python2.2/site-packages/_xmlplus/__init__.pyc matches /usr/lib/python2.2/site-packages/_xmlplus/__init__.py import _xmlplus # precompiled from /usr/lib/python2.2/site-packages/_xmlplus/__init__.pyc import xml.parsers # directory /usr/lib/python2.2/site-packages/_xmlplus/parsers# /usr/lib/python2.2/site-packages/_xmlplus/parsers/__init__.pyc matches /usr/lib/python2.2/site-packages/_xmlplus/parsers/__init__.py import xml.parsers # precompiled from /usr/lib/python2.2/site-packages/_xmlplus/parsers/__init__.pyc Traceback (most recent call last): File "", line 1, in ? ImportError: No module named pyexpat >>> > > On a different path, please check whether pyexpat.so is marked > executable, and, if not, whether making it executable changes > anything. It wasn't marked so, but I changed it and obtained the same result Thanks for your help Pablo -- Muchas personas creen que piensan, cuando en realidad sólo están reordenando sus prejuicios. - William James .-----------------------------------------------------------------. / .-. Pablo Endres Lozada .-. \ | / \ Laboratorio Docente de Computacion / \ | | |\_. | USB - Venezuela | /| | |\| | /| |\ | |/| | `---' | epablo@ldc.usb.ve | `---' | | | | | | |-----------------------------------------------------| | \ | | / \ / \ / `---' `---' From martin@v.loewis.de Wed Jan 22 16:25:15 2003 From: martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) Date: 22 Jan 2003 17:25:15 +0100 Subject: [XML-SIG] problem installing PyXML-0.7.1 and PyXML-0.8.1 In-Reply-To: References: Message-ID: LDC - Pablo Endres Lozada writes: > It wasn't marked so, but I changed it and obtained the > same result I still have no idea. Can you tell whether your Python installation supports dynamic loading of extension modules? What is the result of imp.get_suffixes()? Regards, Martin From epablo@ldc.usb.ve Wed Jan 22 04:26:56 2003 From: epablo@ldc.usb.ve (LDC - Pablo Endres Lozada) Date: Wed, 22 Jan 2003 00:26:56 -0400 (VET) Subject: [XML-SIG] problem installing PyXML-0.7.1 and PyXML-0.8.1 In-Reply-To: Message-ID: On 22 Jan 2003, Martin v. [iso-8859-15] Löwis wrote: > LDC - Pablo Endres Lozada writes: > > > It wasn't marked so, but I changed it and obtained the > > same result > > I still have no idea. Can you tell whether your Python installation > supports dynamic loading of extension modules? What is the result of > imp.get_suffixes()? I really don't know how to know if it's supported, let me investigate on it and I'll tell you. Is that a compile option?? >>> imp.get_suffixes() Traceback (most recent call last): File "", line 1, in ? NameError: name 'imp' is not defined > > Regards, > Martin > -- Muchas personas creen que piensan, cuando en realidad sólo están reordenando sus prejuicios. - William James .-----------------------------------------------------------------. / .-. Pablo Endres Lozada .-. \ | / \ Laboratorio Docente de Computacion / \ | | |\_. | USB - Venezuela | /| | |\| | /| |\ | |/| | `---' | epablo@ldc.usb.ve | `---' | | | | | | |-----------------------------------------------------| | \ | | / \ / \ / `---' `---' From martin@v.loewis.de Wed Jan 22 16:34:10 2003 From: martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) Date: 22 Jan 2003 17:34:10 +0100 Subject: [XML-SIG] problem installing PyXML-0.7.1 and PyXML-0.8.1 In-Reply-To: References: Message-ID: LDC - Pablo Endres Lozada writes: > I really don't know how to know if it's supported, let me investigate on > it and I'll tell you. Is that a compile option?? It should be activated automatically if available. > > >>> imp.get_suffixes() > Traceback (most recent call last): > File "", line 1, in ? > NameError: name 'imp' is not defined Of course, you will have to perform import imp before. Regards, Martin From lists@bagai.com Wed Jan 22 16:47:53 2003 From: lists@bagai.com (Morten Bagai) Date: Wed, 22 Jan 2003 17:47:53 +0100 Subject: [XML-SIG] problem installing PyXML-0.7.1 and PyXML-0.8.1 In-Reply-To: Message-ID: <4016F1E0-2E29-11D7-B1F8-003065CC438E@bagai.com> On onsdag, jan 22, 2003, at 17:25 Europe/Copenhagen, Martin v. L=F6wis=20= wrote: > LDC - Pablo Endres Lozada writes: > >> It wasn't marked so, but I changed it and obtained the >> same result > > I still have no idea. Can you tell whether your Python installation > supports dynamic loading of extension modules? What is the result of > imp.get_suffixes()? > Hey, I've been following this thread because I'm trying to install pyXML=20 0.8.1 on MacOS X 10.2.3, which comes with Python 2.2 preinstalled, and=20= I'm seeing the exact same problems with pyexpat as Pablo. I just wanted=20= to chime in that what did it for seemed to be setting execute privs on=20= pyexpat. Thanks! Morten From fdrake@acm.org Wed Jan 22 19:37:43 2003 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Wed, 22 Jan 2003 14:37:43 -0500 Subject: [XML-SIG] Preparing for PyXML 0.8.2 In-Reply-To: References: Message-ID: <15918.62215.20060.316047@grendel.zope.com> Martin v. L=F6wis writes: > I'll be releasing PyXML 0.8.2 later this week. If you have any patch= es > to incorporate, this would be a good time to commit them. So that everyone knows: I'm planning to release Expat 1.95.6 in time to be incorporated into this release of PyXML. I'll commit that to the PyXML CVS as soon as the release for Expat has been finallized. -Fred --=20 Fred L. Drake, Jr. PythonLabs at Zope Corporation From reagle@w3.org Fri Jan 24 03:30:48 2003 From: reagle@w3.org (Joseph Reagle) Date: Thu, 23 Jan 2003 22:30:48 -0500 Subject: [XML-SIG] c14n.py bug: _IN_XML_NS = lambda n: n.namespaceURI == XMLNS.XML Message-ID: <200301232230.48141.reagle@w3.org> A bug is fixed if I comment out present line and include the subsequent: # _IN_XML_NS = lambda n: n.namespaceURI == XMLNS.XML _IN_XML_NS = lambda n: n.name[:5] == "xmlns" _IN_XML_NS is used if an element is being inclusively canonicalized. (This is *not* a full dom tree being tested against a XPath node-set) It's the test to see whether the ancestors need to be crawled for the namespaces. As 'n' is typically an attribute node, in pyxml DOMs they don't even have a namespaceURI attribute, so they are never included. I noted this bug becaue I use xml.dom.ext.Canonicalize in [1]. [1] http://lists.w3.org/Archives/Public/spec-prod/2003JanMar/0007.html Python Tool for excerpting schema/examples into XHTML spec From rsalz@datapower.com Fri Jan 24 15:45:59 2003 From: rsalz@datapower.com (Rich Salz) Date: Fri, 24 Jan 2003 10:45:59 -0500 Subject: [XML-SIG] Re: c14n.py bug: _IN_XML_NS = lambda n: n.namespaceURI == XMLNS.XML In-Reply-To: <200301232230.48141.reagle@w3.org> References: <200301232230.48141.reagle@w3.org> Message-ID: <3E315FB7.3020108@datapower.com> > A bug is fixed if I comment out present line and include the subsequent: > > # _IN_XML_NS = lambda n: n.namespaceURI == XMLNS.XML > _IN_XML_NS = lambda n: n.name[:5] == "xmlns" That looks right. Can someone with commit permission check it in? (I'm only a lurker these days, so I took myself off.) > [1] http://lists.w3.org/Archives/Public/spec-prod/2003JanMar/0007.html > Python Tool for excerpting schema/examples into XHTML spec That is *way cool* /r$ From mark@easymailings.com Fri Jan 24 15:38:52 2003 From: mark@easymailings.com (Mark Bucciarelli) Date: Fri, 24 Jan 2003 10:38:52 -0500 Subject: [XML-SIG] HTML 2 DocBook Free Software? Message-ID: <200301241038.53137.mark@easymailings.com> Is anyone aware of a Python Free Software tool that converts HTML to DocB= ook? Mark From Pablo_Endres@digitel.com.ve Fri Jan 24 20:24:11 2003 From: Pablo_Endres@digitel.com.ve (Pablo Endres) Date: Fri, 24 Jan 2003 16:24:11 -0400 (VET) Subject: [XML-SIG] xmlrpcServer freeze Message-ID: Hi guys, I've been using the xmlrpc library for a some time now, but latelly the server has been freezing for some reason. I've narrowed down basiclly two cases: The first happends by no speacial reason and gives me no output. It just freezes and blocks all the requests. The second happens when I close the client or it crashes. In this case the server exits and closes the port and I get the following output: Exception happened during processing of request from ('10.20.222.208', 4384) Traceback (most recent call last): File "/usr/local//lib/python2.2/SocketServer.py", line 221, in handle_request self.process_request(request, client_address) File "/usr/local//lib/python2.2/SocketServer.py", line 240, in process_request self.finish_request(request, client_address) File "/usr/local//lib/python2.2/SocketServer.py", line 253, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local//lib/python2.2/SocketServer.py", line 514, in __init__ self.handle() File "/usr/local//lib/python2.2/BaseHTTPServer.py", line 266, in handle method() File "/usr/local/lib/python2.2/site-packages/xmlrpcserver.py", line 60, in do_POST self.send_header("Content-length", str(len(response))) File "/usr/local//lib/python2.2/BaseHTTPServer.py", line 321, in send_header self.wfile.write("%s: %s\r\n" % (keyword, value)) IOError: [Errno 32] Broken pipe I'm working with xmlrpclib 1.0 on python-2.2.1: Server: BaseHTTP/0.2 Python/2.2.1 Any Ideas on whats happening?? -- Muchas personas creen que piensan, cuando en realidad sólo están reordenando sus prejuicios. - William James Pablo Endres Centro de Datos GSM: +584127347610 From martin@v.loewis.de Sat Jan 25 11:42:15 2003 From: martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=) Date: 25 Jan 2003 12:42:15 +0100 Subject: [XML-SIG] Re: c14n.py bug: _IN_XML_NS = lambda n: n.namespaceURI == XMLNS.XML In-Reply-To: <3E315FB7.3020108@datapower.com> References: <200301232230.48141.reagle@w3.org> <3E315FB7.3020108@datapower.com> Message-ID: Rich Salz writes: > That looks right. Can someone with commit permission check it in? It's in c14n.py 1.20. Regards, Martin From Dont_miss_printsupplies120032@mindspring.com Sun Jan 26 23:15:06 2003 From: Dont_miss_printsupplies120032@mindspring.com (Dont_miss_printsupplies120032@mindspring.com) Date: dom, 26 ene 2003 11:16:35 Subject: [XML-SIG] LASER PRINTER, COPIER, & FAX SUPPLIES. Message-ID: <400.523161.104254@unknown> GTTS | January 2003 Newsletter
GT Toner Supplies
Laser Printer, Copier, and Fax Supplies
1-888-662-2256
1-866-237-7397

Hp-Hp color - Lexmark - Epson - Panasonic - Apple - Cannon - Xerox

 
Please forward to the person responsible for purchasing your laser printer supplies.
If you received this email on error, please reply to gtts001@cable.net.co with subject: REMOVE... sorry for the inconvenience.
University and/or School purchase orders WELCOME. (no credit approval required)
Pay by check, c.o.d, or purchase order (net 30 days).

WE ACCEPT ALL MAJOR CREDIT CARDS!

New! HP 4500/4550 series color cartridges in stock!

 

Order by phone: Toll free 1-866-237-7397 Toll free 1-888-662-2256

Order by email: gtts001@cable.net.co subject: ORDER

Our cartridge prices are as follows:
(please order by item number)
Item

HP

Price
1 92274A Toner Cartridge for LaserJet 4L, 4ML, 4P, 4MP $47.50
2 C4092A Black Toner Cartridge for LaserJet 1100A, ASE, 3200SE $45.50
2A C7115A Toner Cartridge For HP LaserJet 1000, 1200, 3330 $55.50
2B C7115X High Capacity Toner Cartridge for HP LaserJet 1000, 1200, 3330 $65.50
3 92295A Toner Cartridge for LaserJet II, IID, III, IIID $49.50
4 92275A Toner Cartridge for LaserJet IIP, IIP+, IIIP $55.50
5 C3903A Toner Cartridge for LaserJet 5P, 5MP, 6P, 6Pse, 6MP, 6Pxi $46.50
6 C3909A Toner Cartridge for LaserJet 5Si, 5SiMX, 5Si Copier, 8000 $92.50
7 C4096A Toner Cartridge for LaserJet 2100, 2200DSE, 2200DTN $72.50
8 C4182X UltraPrecise High Capacity Toner Cartridge for LaserJet 8100 Series $125.50
9 C3906A Toner Cartridge for LaserJet 5L, 5L Xtra, 6Lse, 6L, 6Lxi, 3100se $42.50
9A C3906A Toner Cartridge for LaserJet 3100, 3150 $42.50
10 C3900A Black Toner Cartridge for HP LaserJet 4MV, 4V $89.50
11 C4127A Black Toner Cartridge for LaserJet 4000SE, 4000N, 4000T, 4000TN $76.50
11A C8061A Black Laser Toner for HP LaserJet 4100, 4100N $76.50
11B C8061X High Capacity Toner Cartridge for LJ4100, 4100N $85.50
11C C4127X High Capacity Black Cartridge for LaserJet 4000SE,4000N,4000T,4000TN $84.50
12 92291A Toner Cartridge for LaserJet IIISi, 4Si, 4SiMX $57.50
13 92298A Toner Cartridge for LaserJet 4, 4 Plus, 4M, 4M Plus, 5, 5se, 5M, 5N $46.50
14 C4129X High Capacity Black Toner Cartridge for LaserJet 5000N $97.50
15 LASERFAX 500, 700 (FX1) $49.00
16 LASERFAX 5000, 7000 (FX2) $54.00
17 LASERFAX (FX3) $49.00
18 LASERFAX (FX4) $49.00
Item

HP COLOR

Price
C1 C4194a Toner Cartridge, Yellow (color lj 4500/4550 series) $89.50
C2 C4193a Toner Cartridge, Magenta (color lj 4500/4550 series) $89.50
C3 C4192a toner cartridge, cyan (color lj 4500/4550 series) $89.50
C4 c4191a toner cartridge, black (color lj 4500/4550 series) $74.50
Item

LEXMARK

Price
19 1380520 High Yield Black Laser Toner for 4019, 4019E, 4028, 4029, 6, 10, 10L $109.50
20 1382150 High Yield Toner for 3112, 3116, 4039-10+, 4049- Model 12L,16R, Optra $109.50
21 69G8256 Laser Cartridge for Optra E, E+, EP, ES, 4026, 4026 (6A,6B,6D,6E) $49.00
22 13T0101 High Yield Toner Cartridge for Lexmark Optra E310, E312, E312L $89.00
23 1382625 High-Yield Laser Toner Cartridge for Lexmark Optra S (4059) $129.50
24 12A5745 High Yield Laser Toner for Lexmark Optra T610, 612, 614 (4069) $165.00
Item

EPSON

Price
25 S051009 Toner Cartridge for Epson EPL7000, 7500, 8000+ $115.50
25A S051009 LP-3000 PS 7000 $115.50
26 AS051011 Imaging Cartridge for ActionLaser-1000, 1500 $99.50
26A AS051011 EPL-5000, EPL-5100, EPL-5200 $99.50
Item

PANASONIC

Price
27 Nec series 2 models 90 and 95
$109.50
Item

APPLE

Price
28 2473G/A Laser Toner for LaserWriter Pro 600, 630, LaserWriter 16/600 PS
$57.50
29 1960G/A Laser Toner for Apple LaserWriter Select, 300, 310, 360 $ 71.50
30 M0089LL/A Toner Cartridge for Laserwriter 300, 320 (74A) $ 52.50
31 M6002 Toner Cartridge for Laserwriter IINT, IINTX, IISC, IIF, IIG (95A) $ 47.50
31A M0089LL/A Toner Cartridge for Laserwriter LS, NT, NTR, SC (75A) $ 55.50
32 M4683G/A Laser Toner for LaserWriter 12, 640PS $85.50
Item

CANON

Price
33 Fax CFX-L3500, CFX-4000 CFX-L4500, CFX-L4500IE & IF FX3 $49.50
33A L-250, L-260i, L-300 FX3 $49.50
33B LASER CLASS 2060, 2060P, 4000 FX3 $49.50
34 LASER CLASS 5000, 5500, 7000, 7100, 7500, 6000 FX2 $49.50
35 FAX 5000 FX2 $49.50
36 LASER CLASS 8500, 9000, 9000L, 9000MS, 9500, 9500 MS, 9500 S FX4  $49.50
36A Fax L700,720,760,770,775,777,780,785,790, & L3300 FX1 $49.50
36B L-800, L-900 FX4 $49.50
37 A30R Toner Cartridge for PC-6, 6RE, 7, 11, 12 $59.50
38 E-40 Toner Cartridge for PC-720, 740, 770, 790,795, 920, 950, 980 $85.50
38A E-20 Toner Cartridge for PC-310, 325, 330, 330L, 400, 420, 430 $85.50
Item

XEROX

Price
39 6R900 75A $ 55.50
40 6R903 98A $ 46.50
41 6R902 95A $ 49.50
42 6R901 91A $ 65.50
43 6R908 06A $ 42.50
44 6R899 74A $ 47.50
45 6R928 96A $ 72.50
46 6R926 27X $ 84.50
47 6R906 09A $ 92.50
48 6R907 4MV $ 89.50
49 6R905 03A $46.50

call toll free 1-866-237-7397

30 Day unlimited warranty included on all products
GT Toner Supplies guarantees these cartridges to be free from defects in workmanship and material.

We look forward in doing business with you.

We Guarantee your satisfaction!!!
If you are ordering by purchase order please fill out an order form
with the following information: 

purchase order number
phone number
company or school name
shipping address and billing address
city, state zip code Order Now 

call toll free

1-866-237-7397

If you are ordering by e-mail or c.o.d. please fill out an order
form with the following information: 

phone number
company name
first and last name
street address
city, state zip code 

call toll free

1-866-237-7397

All trade marks and brand names listed above are property of the respective
holders and used for descriptive purposes only.
 
PLEASE DO NOT REPLY TO THIS EMAIL
From scjuonline@web.de Mon Jan 27 08:28:47 2003 From: scjuonline@web.de (=?iso-8859-1?Q?J=FCrgen_Schmidt?=) Date: Mon, 27 Jan 2003 09:28:47 +0100 Subject: [XML-SIG] dynamic information with xsl Message-ID: <001101c2c5de$22918950$0a00a8c0@pamela2000> Hi, Suppose I wish to convert an xml source with a xsl stylesheet to html output. While the conversion takes place, is it possible to have something like an "external function call" to insert dynamic data like date or "logged in" user for serverside formatting? Or is pre- or postprocessing neccessary? I read about the Extension Functions in the XSL Transformations (XSLT) Version 1.0 W3C Recommendation, but it also says, that "This version of XSLT does not provide a mechanism for defining implementations of extensions" I intend to use 4suite's xslt Processor. Could you please help me? thx, JS From uche.ogbuji@fourthought.com Mon Jan 27 14:19:55 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: Mon, 27 Jan 2003 07:19:55 -0700 Subject: [XML-SIG] dynamic information with xsl In-Reply-To: Message from =?iso-8859-1?Q?J=FCrgen_Schmidt?= of "Mon, 27 Jan 2003 09:28:47 +0100." <001101c2c5de$22918950$0a00a8c0@pamela2000> Message-ID: > Hi, > > Suppose I wish to convert an xml source with a xsl stylesheet to html > output. While the conversion takes place, is it possible to have > something like an "external function call" to insert dynamic data like > date or "logged in" user for serverside formatting? > > Or is pre- or postprocessing neccessary? > > I read about the Extension Functions in the XSL Transformations (XSLT) > Version 1.0 W3C Recommendation, but it also says, that "This version of > XSLT does not provide a mechanism for defining implementations of > extensions" > > I intend to use 4suite's xslt Processor. Could you please help me? The following pages sketch how to write XPath/XSLT extensions in 4Suite: http://uche.ogbuji.net/tech/akara/pyxml/xslt-ext-funcs/ http://uche.ogbuji.net/tech/akara/pyxml/xslt-ext-elems/ Please have a look at them, and ask any questions that remain on the 4SUite mailing list http://lists.fourthought.com/mailman/listinfo/4suite -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com The open office file format - http://www-106.ibm.com/developerworks/xml/librar y/x-think15/ Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html 4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4su ite5-i/ XML class warfare - http://www.adtmag.com/article.asp?id=6965 From Mike.Olson@fourthought.com Mon Jan 27 15:27:31 2003 From: Mike.Olson@fourthought.com (Michael Olson) Date: Mon, 27 Jan 2003 08:27:31 -0700 Subject: [XML-SIG] dynamic information with xsl In-Reply-To: Message-ID: >> >> I intend to use 4suite's xslt Processor. Could you please help me? > > The following pages sketch how to write XPath/XSLT extensions in > 4Suite: > > http://uche.ogbuji.net/tech/akara/pyxml/xslt-ext-funcs/ > http://uche.ogbuji.net/tech/akara/pyxml/xslt-ext-elems/ > I should also add that in the source distribution of 4Suite, there are many examples of this. Ft/Xml/XPath/BuiltInExtFunctions.py Ft/Xml/Xslt/BuiltIn*.py Ft/Xml/Xslt/Exslt/*.py Are all files that contain examples of Ext Functions and Elements. Mike > Please have a look at them, and ask any questions that remain on the > 4SUite > mailing list > > http://lists.fourthought.com/mailman/listinfo/4suite > > > -- > Uche Ogbuji Fourthought, Inc. > http://uche.ogbuji.net http://4Suite.org http://fourthought.com > The open office file format - > http://www-106.ibm.com/developerworks/xml/librar > y/x-think15/ > Python Generators + DOM - > http://www.xml.com/pub/a/2003/01/08/py-xml.html > 4Suite Repository Features - > https://www6.software.ibm.com/reg/devworks/dw-x4su > ite5-i/ > XML class warfare - http://www.adtmag.com/article.asp?id=6965 > > > > _______________________________________________ > XML-SIG maillist - XML-SIG@python.org > http://mail.python.org/mailman/listinfo/xml-sig > ------------------------------------------------------------------------ ----------------- Mike Olson Principal Consultant mike.olson@fourthought.com +1 303 583 9900 Fourthought, Inc. http://Fourthought.com PO Box 270590, http://4Suite.org Louisville, CO 80027-5009, USA XML strategy, XML tools, knowledge management From fdrake@acm.org Tue Jan 28 07:16:53 2003 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Tue, 28 Jan 2003 02:16:53 -0500 Subject: [XML-SIG] Expat 1.95.6 and PyXML 0.8.2 Message-ID: <15926.11877.150782.972867@grendel.zope.com> A few days ago, I checked in the code I expected to release as Expat 1.95.6, and Martin released PyXML 0.8.2 based on that code. Since then, one of the Expat bugs fixed in that code was fixed in a more general and robust way, and Expat 1.95.6 was released with that code. So, we have a little conundrum: PyXML 0.8.2 claims to contain Expat 1.95.6, and it *almost* does. The chance that the additional improvement in Expat will actually be needed is incredibly low -- it doesn't affect applications that have a set the StartElementHandler on the Expat parser object. But, the README is wrong about the version of Expat included, in this minor way. Does anyone feel that this is worth releasing a new version of PyXML, with the updated Expat code? I suspect it makes more sense to simply document it somewhere (where???), but would like input from the community. Thanks! -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From mike@skew.org Tue Jan 28 08:24:36 2003 From: mike@skew.org (Mike Brown) Date: Tue, 28 Jan 2003 01:24:36 -0700 (MST) Subject: [XML-SIG] dynamic information with xsl In-Reply-To: "from Uche Ogbuji at Jan 27, 2003 07:19:55 am" Message-ID: <200301280824.h0S8ObjQ028629@chilled.skew.org> > > Suppose I wish to convert an xml source with a xsl stylesheet to html > > output. While the conversion takes place, is it possible to have > > something like an "external function call" to insert dynamic data like > > date or "logged in" user for serverside formatting? Despite the good advice to write an extension function, if the information isn't going to be changing, you can pass it into the transformation as top-level parameters. For example, using 4Suite 0.12.0a3 or latest code from CVS: SRC = """""" STY = """ """ import time from Ft.Xml import InputSource from Ft.Xml.Xslt import Processor src_isrc = InputSource.DefaultFactory.fromString(SRC, 'http://foo/dummy.xml') sty_isrc = InputSource.DefaultFactory.fromString(STY, 'http://foo/dummy.xsl') proc = Processor.Processor() proc.appendStylesheet(sty_isrc) params = {'date': time.asctime()} result = proc.run(src_isrc, topLevelParams=params) print result Result of running the above (just a moment ago): Tue Jan 28 01:22:47 2003 Mike -- Mike J. Brown | http://skew.org/~mike/resume/ Denver, CO, USA | http://skew.org/xml/ From Alexandre.Fayolle@logilab.fr Tue Jan 28 09:25:06 2003 From: Alexandre.Fayolle@logilab.fr (Alexandre) Date: Tue, 28 Jan 2003 10:25:06 +0100 Subject: [XML-SIG] Expat 1.95.6 and PyXML 0.8.2 In-Reply-To: <15926.11877.150782.972867@grendel.zope.com> References: <15926.11877.150782.972867@grendel.zope.com> Message-ID: <20030128092505.GA496@calvin.fayauffre.org> On Tue, Jan 28, 2003 at 02:16:53AM -0500, Fred L. Drake, Jr. wrote: > Does anyone feel that this is worth releasing a new version of PyXML, > with the updated Expat code? I suspect it makes more sense to simply > document it somewhere (where???), but would like input from the > community. I don't know how complicated is the release process for PyXML, but I'd have nothing against seeing a 0.8.2.1 version. -- Alexandre Fayolle LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://www.logilab.org Développement logiciel avancé - Intelligence Artificielle - Formations From uche.ogbuji@fourthought.com Tue Jan 28 14:29:25 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: Tue, 28 Jan 2003 07:29:25 -0700 Subject: [XML-SIG] Expat 1.95.6 and PyXML 0.8.2 In-Reply-To: Message from "Fred L. Drake, Jr." of "Tue, 28 Jan 2003 02:16:53 EST." <15926.11877.150782.972867@grendel.zope.com> Message-ID: > > A few days ago, I checked in the code I expected to release as Expat > 1.95.6, and Martin released PyXML 0.8.2 based on that code. Since > then, one of the Expat bugs fixed in that code was fixed in a more > general and robust way, and Expat 1.95.6 was released with that code. > > So, we have a little conundrum: PyXML 0.8.2 claims to contain Expat > 1.95.6, and it *almost* does. The chance that the additional > improvement in Expat will actually be needed is incredibly low -- it > doesn't affect applications that have a set the StartElementHandler on > the Expat parser object. But, the README is wrong about the version > of Expat included, in this minor way. > > Does anyone feel that this is worth releasing a new version of PyXML, > with the updated Expat code? I suspect it makes more sense to simply > document it somewhere (where???), but would like input from the > community. I think a note to this list, and to the news box on the SF page will do. An entire new release may be overkill. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com The open office file format - http://www-106.ibm.com/developerworks/xml/librar y/x-think15/ Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html 4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4su ite5-i/ XML class warfare - http://www.adtmag.com/article.asp?id=6965 From fdrake@acm.org Tue Jan 28 15:56:48 2003 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Tue, 28 Jan 2003 10:56:48 -0500 Subject: [XML-SIG] Expat 1.95.6 and PyXML 0.8.2 In-Reply-To: <20030128092505.GA496@calvin.fayauffre.org> References: <15926.11877.150782.972867@grendel.zope.com> <20030128092505.GA496@calvin.fayauffre.org> Message-ID: <15926.43072.845199.949478@grendel.zope.com> Alexandre writes: > I don't know how complicated is the release process for PyXML, but I'd > have nothing against seeing a 0.8.2.1 version. I really don't either, since Martin has been doing those since Andrew moved on. Perhaps we should have a checklist, similar to (but *much* shorter than) the Python release process PEPs (yes, Python has *two* of them!). Uche Ogbuji writes: > I think a note to this list, and to the news box on the SF page > will do. An entire new release may be overkill. Ok, we'll go this route for now. In fact, it looks like there hasn't been a news item on there for PyXML in a while, so I've added one for PyXML 0.8.2, with the Expat update suitably adjusted, and made a note in the ANNOUNCE file that it should be posted there as well. Dang, that is one small textbox they provide! So when's 4Suite coming out again? Jeremy really wanted the NS issue he reported fixed in 1.95.6, and we managed to bang together a really solid fix in time. ;-) (Getting it in and tested delayed Expat by 5 days, at least some of which were just identifying all the edge cases and writing tests; we on the Expat team expect free copies of 4Suite! ;-) -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From uche.ogbuji@fourthought.com Tue Jan 28 16:06:44 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: Tue, 28 Jan 2003 09:06:44 -0700 Subject: [XML-SIG] Expat 1.95.6 and PyXML 0.8.2 In-Reply-To: Message from "Fred L. Drake, Jr." of "Tue, 28 Jan 2003 10:56:48 EST." <15926.43072.845199.949478@grendel.zope.com> Message-ID: > Uche Ogbuji writes: > > I think a note to this list, and to the news box on the SF page > > will do. An entire new release may be overkill. > > Ok, we'll go this route for now. > > In fact, it looks like there hasn't been a news item on there for > PyXML in a while, so I've added one for PyXML 0.8.2, with the Expat > update suitably adjusted, and made a note in the ANNOUNCE file that it > should be posted there as well. Thanks. I'll announce this on xmlhack. > Dang, that is one small textbox they provide! > > So when's 4Suite coming out again? Jeremy really wanted the NS issue > he reported fixed in 1.95.6, and we managed to bang together a really > solid fix in time. ;-) (Getting it in and tested delayed Expat by 5 > days, at least some of which were just identifying all the edge cases > and writing tests; we on the Expat team expect free copies of 4Suite! > ;-) We've made our first beta1 promise (and missed it). We usually miss 3-4 promises before actually getting out a 4SUite release :-). Current promise if Monday. It's looking, er, sketchy. Anyway, it is on the way, and the great work of the expat team has been a big help. As for your free copies. No problem. We'll send you any number of licenses of 4Suite you like on our Free WeaselWare offer. You just give us a Visa and Mastercard number and 4Suite is yours FREE for one year. After one year, if we don't hear from you that you want to cancel your 4Suite Free WeaselWare offer (cancellations require one year's prior notice), we'll charge your account the low low price of... ;-) -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com The open office file format - http://www-106.ibm.com/developerworks/xml/librar y/x-think15/ Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html 4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4su ite5-i/ XML class warfare - http://www.adtmag.com/article.asp?id=6965 From fdrake@acm.org Tue Jan 28 16:15:40 2003 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Tue, 28 Jan 2003 11:15:40 -0500 Subject: [XML-SIG] Expat 1.95.6 and PyXML 0.8.2 In-Reply-To: References: <15926.43072.845199.949478@grendel.zope.com> Message-ID: <15926.44204.441142.233924@grendel.zope.com> Uche Ogbuji writes: > Thanks. I'll announce this on xmlhack. I don't know if Martin sent something to the editors address already; he had that listed in ANNOUNCE already. I've not had time to send anything about Expat 1.95.6; if you can annonuce the new Expat version there as well, that would be welcome! It took over a week for the 1.95.5 announcement to appear there; I received harsh words about xmlhack biases against non-Java packages at that point (from an Expat contributor, not an xmlhack editor). > We've made our first beta1 promise (and missed it). We usually > miss 3-4 promises before actually getting out a 4SUite release :-). > Current promise if Monday. It's looking, er, sketchy. Anyway, it > is on the way, and the great work of the expat team has been a big > help. Cool! I'll keep an eye out for the announcement. > As for your free copies. No problem. We'll send you any number of > licenses of 4Suite you like on our Free WeaselWare offer. You just > give us a Visa and Mastercard number and 4Suite is yours FREE for > one year. After one year, if we don't hear from you that you want Excellent! Initiating SSL connection now (SSL = Smoke Screen Layer, of course). ;-) -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From uche.ogbuji@fourthought.com Wed Jan 29 05:06:38 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: Tue, 28 Jan 2003 22:06:38 -0700 Subject: [XML-SIG] Expat 1.95.6 and PyXML 0.8.2 In-Reply-To: Message from "Fred L. Drake, Jr." of "Tue, 28 Jan 2003 11:15:40 EST." <15926.44204.441142.233924@grendel.zope.com> Message-ID: > > Uche Ogbuji writes: > > Thanks. I'll announce this on xmlhack. > > I don't know if Martin sent something to the editors address already; > he had that listed in ANNOUNCE already. I've not had time to send > anything about Expat 1.95.6; if you can annonuce the new Expat version > there as well, that would be welcome! It took over a week for the > 1.95.5 announcement to appear there; I received harsh words about > xmlhack biases against non-Java packages at that point (from an Expat > contributor, not an xmlhack editor). Announced. xmlhack is really, as its name implies, a group of XML developers who post news as time and interest dictates. I know that several of the editors, myself included, avoid Java like the plague, so that would be an odd bias for the site. I must say that Java folks seem to be better at announcing stuff in forums that I, for one, read. Since becoming an editor, I've tried to make sure Python is well-represented in xmlhack news. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com The open office file format - http://www-106.ibm.com/developerworks/xml/library/x-think15/ Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html 4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4suite5-i/ XML class warfare - http://www.adtmag.com/article.asp?id=6965 From fdrake@acm.org Wed Jan 29 05:58:50 2003 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Wed, 29 Jan 2003 00:58:50 -0500 Subject: [XML-SIG] Expat 1.95.6 and PyXML 0.8.2 In-Reply-To: References: <15926.44204.441142.233924@grendel.zope.com> Message-ID: <15927.28058.2834.68354@grendel.zope.com> Uche Ogbuji writes: > Announced. xmlhack is really, as its name implies, a group of XML > developers who post news as time and interest dictates. I know > that several of the editors, myself included, avoid Java like the > plague, so that would be an odd bias for the site. I must say that > Java folks seem to be better at announcing stuff in forums that I, > for one, read. I'm afraid I don't know much about most of the names on the published list of editors on the site, so it's hard to tell what the "natural" bias might be. The originator of the comment about a possible Java bias is definately a regular reader of xmlhack, so I expect it's based on casually observing the flow of articles. Regarding Java and announcements... I suspect that high levels of exposure to marketing hype tend to produce high levels of marketing hype. A dreadful and potentially deadly cycle. > Since becoming an editor, I've tried to make sure Python is > well-represented in xmlhack news. I've certainly noticed when Python-related items pop up. Please don't misunderstand my comments; I like xmlhack and really appreciate volunteer efforts like this! -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From uche.ogbuji@fourthought.com Wed Jan 29 14:16:37 2003 From: uche.ogbuji@fourthought.com (Uche Ogbuji) Date: Wed, 29 Jan 2003 07:16:37 -0700 Subject: [XML-SIG] Expat 1.95.6 and PyXML 0.8.2 In-Reply-To: Message from "Fred L. Drake, Jr." of "Wed, 29 Jan 2003 00:58:50 EST." <15927.28058.2834.68354@grendel.zope.com> Message-ID: > > Uche Ogbuji writes: > > Announced. xmlhack is really, as its name implies, a group of XML > > developers who post news as time and interest dictates. I know > > that several of the editors, myself included, avoid Java like the > > plague, so that would be an odd bias for the site. I must say that > > Java folks seem to be better at announcing stuff in forums that I, > > for one, read. > > I'm afraid I don't know much about most of the names on the published > list of editors on the site, so it's hard to tell what the "natural" > bias might be. The originator of the comment about a possible Java > bias is definately a regular reader of xmlhack, so I expect it's based > on casually observing the flow of articles. > > Regarding Java and announcements... I suspect that high levels of > exposure to marketing hype tend to produce high levels of marketing > hype. A dreadful and potentially deadly cycle. > > > Since becoming an editor, I've tried to make sure Python is > > well-represented in xmlhack news. > > I've certainly noticed when Python-related items pop up. Please don't > misunderstand my comments; I like xmlhack and really appreciate > volunteer efforts like this! Oh. I certainly took no offense. I just wanted to be clear that xmlhack is much more of a hobby site than an industry rag, so unevenness is pretty much inevitable. I was also a bit surprised, given my familiarity with other editors, that the site could have managed to give the impression of a bias towards Java. Often when the xmlhack editors are discussing Java, it is as one of the plagues with which Adonai afflicted Egypt ;-) -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com The open office file format - http://www-106.ibm.com/developerworks/xml/librar y/x-think15/ Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html 4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4su ite5-i/ XML class warfare - http://www.adtmag.com/article.asp?id=6965 From btusdin@mulberrytech.com Thu Jan 30 16:35:31 2003 From: btusdin@mulberrytech.com (B. Tommie Usdin) Date: Thu, 30 Jan 2003 11:35:31 -0500 Subject: [XML-SIG] Extreme Markup Languages 2003 - Call for Participation Message-ID: Call for Participation Extreme Markup Languages 2003 Sponsored by IDEAlliance (Alexandria, Va.) More Extreme! ------------- It's happening again, and it's more Extreme than ever! And Bigger! Principals of IDEAlliance's Knowledge Technologies conference have joined the organizers of Extreme Markup Languages to expand the scope of Extreme. We offer a single unabashedly hard-core conference as a gathering place for the technically-oriented members of the information interchange and knowledge representation community; a place for these people to meet and refresh each other with ideas, advice, and camaraderie. The conference is agnostic with respect to commercial and political persuasion; it is passionate about providing a forum for technical ideas. At Extreme Markup Languages we devote the better part of a week to the unfettered pursuit of better understanding of: - markup practice and theory; - knowledge access and navigation; - formal languages; - information philosophy; - development of markup and knowledge aggregation software; and - ontologies, taxonomies, and vocabularies. Logistics --------- What: Extreme Markup Languages 2003 Call for Papers, Peer Reviewers, Posters, and Tutorials When: August 4-8, 2003 Where: Hilton Hotel, Montréal, Canada Sponsor: Idealliance Chair: B. Tommie Usdin, Mulberry Technologies, Inc. Co-Chairs: Deborah A. Lapeyre, Mulberry Technologies, Inc. James D. Mason, Y-12 National Security Complex Steven R. Newcomb, Coolheads Consulting C. M. Sperberg-McQueen, World Wide Web Consortium/MIT Laboratory for Computer Science How: See details at: http://www.mulberrytech.com/Extreme Schedule: Peer Review Applications Due. . March 20, 2003 Tutorial Proposals Due . . . . March 20, 2003 Paper Submission Deadline . . . April 3, 2003 Speakers Notified . . . . . . . May 20, 2003 Revised Papers Due. . . . . . . June 24, 2003 Tutorials . . . . . . . . . . . August 4, 2003 Conference . . . . . . . . . . August 5-8, 2003 Questions: Email to extreme@mulberrytech.com or call Tommie Usdin +1 301/315-9631 More Information: For updated information on the program and plans for the conference, see http://www.extrememarkup.com/ -- ====================================================================== B. Tommie Usdin mailto:btusdin@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Phone: 301/315-9631 Suite 207 Direct Line: 301/315-9634 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== From noreply@sourceforge.net Thu Jan 30 21:22:16 2003 From: noreply@sourceforge.net (SourceForge.net) Date: Thu, 30 Jan 2003 13:22:16 -0800 Subject: [XML-SIG] [ pyxml-Bugs-677768 ] 0.8.2 setup.py errors on OS X Message-ID: Bugs item #677768, was opened at 2003-01-30 21:22 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106473&aid=677768&group_id=6473 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Brian Lenihan (brianl) Assigned to: Nobody/Anonymous (nobody) Summary: 0.8.2 setup.py errors on OS X Initial Comment: This code does not work for multiple reasons: line 11: from distutils.sysconfig import get_config_vars line 58: if sys.platform[:6] == "darwin" and \ distutils.sysconfig.get_config_var("LDSHARED").find("-flat_namespace") == -1: # Mac OS X Also, on my machine (OS X 10.2.4, Python 2.3a-cvs), get_config_vars returned a list for LDSHARED and since lists don't have find methods.... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106473&aid=677768&group_id=6473 From Andreas Jung Fri Jan 31 18:00:14 2003 From: Andreas Jung (Andreas Jung) Date: Fri, 31 Jan 2003 19:00:14 +0100 Subject: [XML-SIG] DTD parser question Message-ID: <41011401.1044039614@[192.168.0.3]> I am currently building an XML editor using Zope. Users will see an XML document as tree and klick on a node. Based on the node they will see a toolbox with elements they can insert either as sibling or as child. I need to decide based on the DTD what elements are allowed to be inserted /deleted. I checked out the DTD parser of xmlproc and it looks very promising to work with however I have some problems with the ElementType interface: def get_start_state(self): Returns the start state of the content model of the element. (No guarantees is made as to the type of this value; just think of it as a magic cookie instead.) def final_state(self,state): Returns true if the given state (as returned by get_start_state or next_state) is a final state, ie: one in which the element is allowed to end. def next_state(self,state,elem_name): Returns the next state of the element (again in an unspecified type) when the an element with the given name is encountered in the given state. Character data is represented as the element name '#PCDATA'. If the element is not allowed in this state the value 0 will be returned. What are these states used for (assuming the DTD is build on a final state machine)? How can I use them for my projects? Thanks for any hint, Andreas --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------