This release contains two major bugfixes, and several improvements:
* gnosis.xml.pickle now works with PyXML 0.8.x (and earlier, of course).
* Bugfix in handling of initargs in gnosis.xml.pickle.
* Print warning during installation if xml.minidom is missing/broken.
* (Packaging) Fixed generation of PKG-INFO.
* Fix to let gnosis run in a standalone (e.g. py2exe) environment.
* Improvements to xml.pickle.test suite
* Documentation updates to xml.pickle.doc
It may be obtained at:
http://gnosis.cx/download/Gnosis_Utils-1.0.5.tar.gz
The current release is always available as:
http://gnosis.cx/download/Gnosis_Utils-current.tar.gz
Try it out, have fun, send feedback!
David Mertz (mertz@gnosis.cx)
Frank McIngvale (frankm@hiwaay.net)
------------------------------------------------------------------------
DIGRESSION: A user proposed improvements to gnosis.indexer to enable
word-stemming and positional indices. The latter would enable proximity
searches, although that is not yet implemented. I find the proposed
code, however, in need of a bit of refactoring, and I have not tested
it. If anyone wants this code to play with, let me know; if anyone with
more time than me wants to take on the actual refactoring and testing, I
would be overjoyed. -dqm
------------------------------------------------------------------------
BACKGROUND: Gnosis Utilities contains a number of Python libraries, most
(but not all) related to working with XML. These include:
gnosis.xml.pickle (XML pickling of Python objects)
gnosis.xml.objectify (Any XML to "native" Python objects)
gnosis.xml.validity (Enforce validity constraints)
gnosis.xml.indexer (XPATH indexing of XML documents)
gnosis.indexer (Full-text indexing/searching)
[...].convert.txt2html (Convert ASCII source files to HTML)
gnosis.util.dtd2sql (DTD -> SQL 'CREATE TABLE' statements)
gnosis.util.sql2dtd (SQL query -> DTD for query results)
gnosis.util.xml2sql (XML -> SQL 'INSERT INTO' statements)
gnosis.util.combinators (Combinatorial higher-order functions)
gnosis.util.introspect (Introspect Python objects)
...and so much more! :-)
SUMMARY:
Gnosis_Utils 1.0.5 (16-Nov-02)
From wganz@texoma.net Sun Nov 17 00:07:01 2002
From: wganz@texoma.net (Will Ganz)
Date: Sat, 16 Nov 2002 18:07:01 -0600
Subject: [XML-SIG] test message 00
Message-ID:
Sorry for the test message but I haven't gotten a message all month.
From wganz@texoma.net Sun Nov 17 00:07:29 2002
From: wganz@texoma.net (Will Ganz)
Date: Sat, 16 Nov 2002 18:07:29 -0600
Subject: [XML-SIG] test message 01
Message-ID:
Sorry for the test message but I haven't gotten a message all month.
From wganz@texoma.net Sun Nov 17 01:02:58 2002
From: wganz@texoma.net (Will Ganz)
Date: Sat, 16 Nov 2002 19:02:58 -0600
Subject: [XML-SIG] test message 02
Message-ID:
testing system r/t no emails all month
From uche.ogbuji@fourthought.com Tue Nov 19 16:20:27 2002
From: uche.ogbuji@fourthought.com (Uche Ogbuji)
Date: Tue, 19 Nov 2002 09:20:27 -0700
Subject: [XML-SIG] Article: RSS for Python
Message-ID:
http://www-106.ibm.com/developerworks/webservices/library/ws-pyth11.html
RSS is one of the most successful XML services ever. Despite its chaotic
roots, it has become the community standard for exchanging content information
across Web sites. Python is an excellent tool for RSS processing, and Mike
Olson and Uche Ogbuji introduce a couple of modules available for this purpose.
--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://4Suite.org http://fourthought.com
Python&XML column: 2. Introducing PyXML - http://www.xml.com/pub/a/2002/09/25/p
y.html
The Past, Present and Future of Web Services 1 - http://www.webservices.org/ind
ex.php/article/articleview/663/1/24/
The Past, Present and Future of Web Services 2 - 'http://www.webservices.org/in
dex.php/article/articleview/679/1/24/
Serenity through markup - http://adtmag.com/article.asp?id=6807
Tip: Using generators for XML processing - http://www-106.ibm.com/developerwork
s/xml/library/x-tipgenr.html
From Bob Marshall"
Hi there,
I've just downloaded the PyXML-0.8.1.win32-py2.1.exe file from sourceforge
and am trying to install it. But when the Setup program gets to the second
screen the 'select python installtion to use' box is empty and I can't type
anything into the 'Installation Directory' box either. What can I do?
N.B. My relevant Python is 2.1.3 (which came bundled with Zope 2.6) and
the OS is Windows XP(Home)-SP1.
Thanks in advance for any assistance!
Cheers
Bob
From martin@v.loewis.de Wed Nov 20 16:38:57 2002
From: martin@v.loewis.de (Martin v. Löwis)
Date: Wed, 20 Nov 2002 17:38:57 +0100
Subject: [XML-SIG] Problems installing PyXML-0.8.1 on windows
References: <200211201546.gAKFkmD12584@fallingblossoms.com>
Message-ID: <001601c290b3$52f85f70$f512e8d9@mira>
> I've just downloaded the PyXML-0.8.1.win32-py2.1.exe file from
sourceforge
> and am trying to install it. But when the Setup program gets to the
second
> screen the 'select python installtion to use' box is empty and I can't
type
> anything into the 'Installation Directory' box either. What can I do?
>
> N.B. My relevant Python is 2.1.3 (which came bundled with Zope 2.6)
and
> the OS is Windows XP(Home)-SP1.
The PyXML setup tries to find certain registry keys that the Zope
installation
does not set. Your options are to either set those registry keys (search
this
mailing list's archive for details), to build PyXML from source, or to
install
it yourself using WinZip (the installer ist just a zip file).
HTH,
Martin
From wganz@imacs.com Wed Nov 20 16:49:51 2002
From: wganz@imacs.com (Ganz, Will)
Date: Wed, 20 Nov 2002 10:49:51 -0600
Subject: [XML-SIG] Problems installing PyXML-0.8.1 on windows
Message-ID:
Are you using the ASPN build or the version direct from www.python.org? My
install with the ASPN build on a W2K machine went without a hitch.
-----Original Message-----
From: Bob Marshall [mailto:marshall@fallingblossoms.com]
Sent: Wednesday, November 20, 2002 9:47 AM
To: xml-sig@python.org
Subject: [XML-SIG] Problems installing PyXML-0.8.1 on windows
Hi there,
I've just downloaded the PyXML-0.8.1.win32-py2.1.exe file from sourceforge
and am trying to install it. But when the Setup program gets to the second
screen the 'select python installtion to use' box is empty and I can't type
anything into the 'Installation Directory' box either. What can I do?
N.B. My relevant Python is 2.1.3 (which came bundled with Zope 2.6) and
the OS is Windows XP(Home)-SP1.
Thanks in advance for any assistance!
Cheers
Bob
_______________________________________________
XML-SIG maillist - XML-SIG@python.org
http://mail.python.org/mailman/listinfo/xml-sig
From mertz@gnosis.cx Wed Nov 20 20:06:45 2002
From: mertz@gnosis.cx (David Mertz, Ph.D.)
Date: Wed, 20 Nov 2002 15:06:45 -0500
Subject: [XML-SIG] [Announce] Gnosis Utils 1.0.5
Message-ID:
This release contains two major bugfixes, and several improvements:
* gnosis.xml.pickle now works with PyXML 0.8.x (and earlier, of course).
* Bugfix in handling of initargs in gnosis.xml.pickle.
* Print warning during installation if xml.minidom is missing/broken.
* (Packaging) Fixed generation of PKG-INFO.
* Fix to let gnosis run in a standalone (e.g. py2exe) environment.
* Improvements to xml.pickle.test suite
* Documentation updates to xml.pickle.doc
It may be obtained at:
http://gnosis.cx/download/Gnosis_Utils-1.0.5.tar.gz
The current release is always available as:
http://gnosis.cx/download/Gnosis_Utils-current.tar.gz
Try it out, have fun, send feedback!
David Mertz (mertz@gnosis.cx)
Frank McIngvale (frankm@hiwaay.net)
------------------------------------------------------------------------
DIGRESSION: A user proposed improvements to gnosis.indexer to enable
word-stemming and positional indices. The latter would enable proximity
searches, although that is not yet implemented. I find the proposed
code, however, in need of a bit of refactoring, and I have not tested
it. If anyone wants this code to play with, let me know; if anyone with
more time than me wants to take on the actual refactoring and testing, I
would be overjoyed. -dqm
------------------------------------------------------------------------
BACKGROUND: Gnosis Utilities contains a number of Python libraries, most
(but not all) related to working with XML. These include:
gnosis.xml.pickle (XML pickling of Python objects)
gnosis.xml.objectify (Any XML to "native" Python objects)
gnosis.xml.validity (Enforce validity constraints)
gnosis.xml.indexer (XPATH indexing of XML documents)
gnosis.indexer (Full-text indexing/searching)
[...].convert.txt2html (Convert ASCII source files to HTML)
gnosis.util.dtd2sql (DTD -> SQL 'CREATE TABLE' statements)
gnosis.util.sql2dtd (SQL query -> DTD for query results)
gnosis.util.xml2sql (XML -> SQL 'INSERT INTO' statements)
gnosis.util.combinators (Combinatorial higher-order functions)
gnosis.util.introspect (Introspect Python objects)
...and so much more! :-)
SUMMARY:
Gnosis_Utils 1.0.5 (16-Nov-02)
From alexandre.fayolle@logilab.fr Thu Nov 21 11:13:19 2002
From: alexandre.fayolle@logilab.fr (alexandre.fayolle@logilab.fr)
Date: Thu, 21 Nov 2002 12:13:19 +0100
Subject: [XML-SIG] xmlproc man pages
Message-ID: <20021121111319.GJ14520@calvin.fayauffre.org>
Hi,
I've written a couple of man pages for the xmlproc_parse and xmlproc_val
scripts, for the python-xml debian package I maintain. Would you like me
to add these pages to the pyxml CVS repository, and if so where should I
do so?
--
Alexandre Fayolle
From martin@v.loewis.de Thu Nov 21 19:47:27 2002
From: martin@v.loewis.de (Martin v. Loewis)
Date: 21 Nov 2002 20:47:27 +0100
Subject: [XML-SIG] xmlproc man pages
In-Reply-To: <20021121111319.GJ14520@calvin.fayauffre.org>
References: <20021121111319.GJ14520@calvin.fayauffre.org>
Message-ID:
alexandre.fayolle@logilab.fr writes:
> I've written a couple of man pages for the xmlproc_parse and xmlproc_val
> scripts, for the python-xml debian package I maintain. Would you like me
> to add these pages to the pyxml CVS repository, and if so where should I
> do so?
Putting them into the doc directory would be best. Please verify that
sdist picks them up, modify MANIFEST.in if it doesn't.
Regards,
Martin
From Alexandre.Fayolle@logilab.fr Fri Nov 22 08:28:21 2002
From: Alexandre.Fayolle@logilab.fr (Alexandre)
Date: Fri, 22 Nov 2002 09:28:21 +0100
Subject: [XML-SIG] xmlproc man pages
In-Reply-To:
References: <20021121111319.GJ14520@calvin.fayauffre.org>
Message-ID: <20021122082821.GB21414@calvin.fayauffre.org>
On Thu, Nov 21, 2002 at 08:47:27PM +0100, Martin v. Loewis wrote:
> alexandre.fayolle@logilab.fr writes:
>
> > I've written a couple of man pages for the xmlproc_parse and xmlproc_val
> > scripts, for the python-xml debian package I maintain. Would you like me
> > to add these pages to the pyxml CVS repository, and if so where should I
> > do so?
>
> Putting them into the doc directory would be best. Please verify that
> sdist picks them up, modify MANIFEST.in if it doesn't.
Done.
--
Alexandre
From martin@v.loewis.de Fri Nov 22 09:39:41 2002
From: martin@v.loewis.de (Martin v. Loewis)
Date: 22 Nov 2002 10:39:41 +0100
Subject: [XML-SIG] xmlproc man pages
In-Reply-To: <20021122082821.GB21414@calvin.fayauffre.org>
References: <20021121111319.GJ14520@calvin.fayauffre.org>
<20021122082821.GB21414@calvin.fayauffre.org>
Message-ID:
Alexandre writes:
> Done.
Thanks!
Martin
From fredrik@pythonware.com Sun Nov 24 12:45:32 2002
From: fredrik@pythonware.com (Fredrik Lundh)
Date: Sun, 24 Nov 2002 13:45:32 +0100
Subject: [XML-SIG] ANN: ElementTree 1.1 beta 2
Message-ID: <013d01c293b7$62aa9580$ced241d5@hagrid>
The Element type is a simple but flexible container object, designed
to store hierarchical data structures, such as simplified XML infosets,
in memory. The element type can be described as a cross between a
Python list and a dictionary.
The ElementTree toolkit contains an Element implementation in Python,
and code to read XML and HTML files into trees of Element objects, and
write them out as XML.
You can get the ElementTree toolkit from:
http://effbot.org/downloads
See the README file for a list of changes in this release.
Brief documentation and some code samples (including an XML-RPC
unmarshaller in 16 lines) are available from:
http://effbot.org/zone/element-index.htm
Report bugs to this list, and/or (preferred) directly to me.
enjoy /F
From rschmitz@explistings.com Mon Nov 25 07:22:12 2002
From: rschmitz@explistings.com (Ryan Schmitz)
Date: Mon, 25 Nov 2002 01:22:12 -0600
Subject: [XML-SIG] San Antonio Expired Listing
Message-ID: <4138-220021112572212694@the-bis0e99u2qp>
Your demo account on www=2Eexplistings=2Ecom we be invalid in two days=2E =
Be sure and take advantage of the FREE demo=2E
URL : http://www=2Eexplistings=2Ecom
username : demo
password : demo
Thank you,
Ryan Schmitz
rschmitz@explistings=2Ecom
www=2Eexplistings=2Ecom
From wganz@imacs.com Mon Nov 25 19:41:22 2002
From: wganz@imacs.com (Ganz, Will)
Date: Mon, 25 Nov 2002 13:41:22 -0600
Subject: [XML-SIG] Python equivalent to Perl's XML::Writer
Message-ID:
I am trying to generate XML output from data that is in a dictionary of a
list of lists. My prior experience with this type of XML generation was with
the XML::Writer module in that other 'P' scripting language.
Is there a functional equivalent in Python? I've gone through "Python & XML"
plus "XML Processing with Pelr, Python, and PHP" without much luck. I've got
4Thought's XML suite installed on Python 2.2.1 build 222 (ASPN).
Thanks
From fredrik@pythonware.com Mon Nov 25 20:58:13 2002
From: fredrik@pythonware.com (Fredrik Lundh)
Date: Mon, 25 Nov 2002 21:58:13 +0100
Subject: [XML-SIG] Python equivalent to Perl's XML::Writer
References:
Message-ID: <006701c294c5$61eac840$ced241d5@hagrid>
will ganz wrote:
> I am trying to generate XML output from data that is in a dictionary of a
> list of lists. My prior experience with this type of XML generation was with
> the XML::Writer module in that other 'P' scripting language.
>
> Is there a functional equivalent in Python? I've gone through "Python & XML"
> plus "XML Processing with Pelr, Python, and PHP" without much luck. I've got
> 4Thought's XML suite installed on Python 2.2.1 build 222 (ASPN).
I'm not sure what XML::Writer does, but there's an XMLWriter class in the
ElementTree package that you might find useful (make sure you get 1.1b3
or later; the one in 1.1b2 is slightly broken):
http://effbot.org/zone/xml-writer.htm (xmlwriter overview)
http://effbot.org/downloads/ (code)
http://effbot.org/zone/element-index.htm (elementtree overview)
From martin@v.loewis.de Mon Nov 25 22:55:34 2002
From: martin@v.loewis.de (Martin v. Loewis)
Date: 25 Nov 2002 23:55:34 +0100
Subject: [XML-SIG] Python equivalent to Perl's XML::Writer
In-Reply-To: <006701c294c5$61eac840$ced241d5@hagrid>
References:
<006701c294c5$61eac840$ced241d5@hagrid>
Message-ID:
"Fredrik Lundh" writes:
> I'm not sure what XML::Writer does, but there's an XMLWriter class in the
> ElementTree package that you might find useful (make sure you get 1.1b3
> or later; the one in 1.1b2 is slightly broken):
There are various other ways to marshal a dictionary of lists in Python:
- xmlrpclib.dumps
- xml.marshal.wddx.dumps
- xml.marshal.generic.dumps
They have all different properties; without knowing the requirements,
it is hard to tell which of these routines meets the requirements
best.
Regards,
Martin
From bortzmeyer@nic.fr Tue Nov 26 15:25:38 2002
From: bortzmeyer@nic.fr (Stephane Bortzmeyer)
Date: Tue, 26 Nov 2002 16:25:38 +0100
Subject: [XML-SIG] Parsing XML data from a stream where several XML elements follow?
Message-ID: <20021126152538.GA19115@nic.fr>
I'm writing a simple XML Internet program which must be able to read
and parse successive XML elements coming on the same TCP stream (I did
not write the protocol so changing this is not an option).
If I write simple code like:
read_channel = self.socket.makefile('r')
reader = Sax2.Reader()
reply = reader.fromStream(read_channel)
The fromStream method is stalled even after a complete XML element was
read because it waits for the channel to close.
Is there a way to tell fromStream (which seems poorly documented) to
yield a result after the first complete element (or after a syntax
error)? Or is there a better way to read successive XML elements?
From wilk-ml@flibuste.net Wed Nov 27 06:14:29 2002
From: wilk-ml@flibuste.net (William Dode)
Date: 27 Nov 2002 07:14:29 +0100
Subject: [XML-SIG] [Announce] Gnosis Utils 1.0.5
In-Reply-To:
References:
Message-ID: <874ra3a69m.fsf@flibuste.net>
mertz@gnosis.cx (David Mertz, Ph.D.) writes:
> Try it out, have fun, send feedback!
Thanks for your great tools and papers, they help me a lot to learn.
About fun and xml, i would like to know if you or somebody else have
written somethings about jabber ?
bye
--=20
William Dod=E9 - http://flibuste.net
From blalor+dated+1038842482.52725c@ithacabands.org Wed Nov 27 15:22:52 2002
From: blalor+dated+1038842482.52725c@ithacabands.org (Brian Lalor)
Date: 27 Nov 2002 08:22:52 -0700
Subject: [XML-SIG] Re: [Announce] Gnosis Utils 1.0.5
References: <874ra3a69m.fsf@flibuste.net>
Message-ID:
William Dode writes:
> mertz@gnosis.cx (David Mertz, Ph.D.) writes:
>
> > Try it out, have fun, send feedback!
>
> Thanks for your great tools and papers, they help me a lot to learn.
>
> About fun and xml, i would like to know if you or somebody else have
> written somethings about jabber ?
Check out http://jabberpy.sf.net/; I've written several scripts that use it
and it is very well done, but not without some bugs.
--
Brian Lalor | http://introducingthelalors.org/
blalor@ithacabands.org (email) | blalor@jabber.ithacabands.org (jabber)
N33°29.18' W111°56.55' (Earth)
From noreply@sourceforge.net Wed Nov 27 17:35:53 2002
From: noreply@sourceforge.net (noreply@sourceforge.net)
Date: Wed, 27 Nov 2002 09:35:53 -0800
Subject: [XML-SIG] [ pyxml-Patches-644843 ] drv_sgmlop and skippedEntity()
Message-ID:
Patches item #644843, was opened at 2002-11-27 18:35
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=306473&aid=644843&group_id=6473
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
Assigned to: Nobody/Anonymous (nobody)
Summary: drv_sgmlop and skippedEntity()
Initial Comment:
The SAX2 driver for sgmlop should probably report
entity name in unknown_entityref/skippedEntity as
unicode objects instead of str objects.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=306473&aid=644843&group_id=6473
From mal@lemburg.com Wed Nov 27 17:43:07 2002
From: mal@lemburg.com (M.-A. Lemburg)
Date: Wed, 27 Nov 2002 18:43:07 +0100
Subject: [XML-SIG] [ pyxml-Patches-644843 ] drv_sgmlop and skippedEntity()
References:
Message-ID: <3DE5042B.30106@lemburg.com>
Why is this being sent to the xml-sig mailing list ?
noreply@sourceforge.net wrote:
> Patches item #644843, was opened at 2002-11-27 18:35
> You can respond by visiting:=20
> https://sourceforge.net/tracker/?func=3Ddetail&atid=3D306473&aid=3D6448=
43&group_id=3D6473
>=20
> Category: None
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Walter D=F6rwald (doerwalter)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: drv_sgmlop and skippedEntity()
>=20
> Initial Comment:
> The SAX2 driver for sgmlop should probably report
> entity name in unknown_entityref/skippedEntity as
> unicode objects instead of str objects.
>=20
> ----------------------------------------------------------------------
>=20
> You can respond by visiting:=20
> https://sourceforge.net/tracker/?func=3Ddetail&atid=3D306473&aid=3D6448=
43&group_id=3D6473
>=20
> _______________________________________________
> XML-SIG maillist - XML-SIG@python.org
> http://mail.python.org/mailman/listinfo/xml-sig
--=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 fdrake@acm.org Wed Nov 27 18:02:53 2002
From: fdrake@acm.org (Fred L. Drake, Jr.)
Date: Wed, 27 Nov 2002 13:02:53 -0500
Subject: [XML-SIG] [ pyxml-Patches-644843 ] drv_sgmlop and skippedEntity()
In-Reply-To: <3DE5042B.30106@lemburg.com>
References:
<3DE5042B.30106@lemburg.com>
Message-ID: <15845.2253.941976.92382@grendel.zope.com>
M.-A. Lemburg writes:
> Why is this being sent to the xml-sig mailing list ?
Why is the new issue report being sent, or why is it being sent to the
XML-SIG list?
It's being sent because a new issue was filed; it was sent to this
list since the XML-SIG is the place the PyXML developers hang out.
There are currently only two lists associated with PyXML: XML-SIG, and
pyxml-checkins. Should a separate list be created for the SF issue
tracker output? I'm not sure there's enough of it to justify a new
list.
-Fred
--
Fred L. Drake, Jr.
PythonLabs at Zope Corporation
From mal@lemburg.com Wed Nov 27 18:27:52 2002
From: mal@lemburg.com (M.-A. Lemburg)
Date: Wed, 27 Nov 2002 19:27:52 +0100
Subject: [XML-SIG] [ pyxml-Patches-644843 ] drv_sgmlop and skippedEntity()
References: <3DE5042B.30106@lemburg.com> <15845.2253.941976.92382@grendel.zope.com>
Message-ID: <3DE50EA8.3030409@lemburg.com>
Fred L. Drake, Jr. wrote:
> M.-A. Lemburg writes:
> > Why is this being sent to the xml-sig mailing list ?
>
> Why is the new issue report being sent, or why is it being sent to the
> XML-SIG list?
The latter.
> It's being sent because a new issue was filed; it was sent to this
> list since the XML-SIG is the place the PyXML developers hang out.
>
> There are currently only two lists associated with PyXML: XML-SIG, and
> pyxml-checkins. Should a separate list be created for the SF issue
> tracker output? I'm not sure there's enough of it to justify a new
> list.
Oh, ok. I was just thinking that the recent SF maintenance
introduced maybe some kind of bug in the setup. These messages
are so rare on the list that I must have overread them in the
past.
--
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 fdrake@acm.org Wed Nov 27 18:40:16 2002
From: fdrake@acm.org (Fred L. Drake, Jr.)
Date: Wed, 27 Nov 2002 13:40:16 -0500
Subject: [XML-SIG] [ pyxml-Patches-644843 ] drv_sgmlop and skippedEntity()
In-Reply-To: <3DE50EA8.3030409@lemburg.com>
References:
<3DE5042B.30106@lemburg.com>
<15845.2253.941976.92382@grendel.zope.com>
<3DE50EA8.3030409@lemburg.com>
Message-ID: <15845.4496.84380.490382@grendel.zope.com>
M.-A. Lemburg writes:
> Oh, ok. I was just thinking that the recent SF maintenance
> introduced maybe some kind of bug in the setup. These messages
> are so rare on the list that I must have overread them in the
> past.
There certainly aren't many compared to what we see for Python
itself. One reason is the smaller scope of the PyXML package, and
another is that only notes about new issues are sent, instead of every
update or followup.
-Fred
--
Fred L. Drake, Jr.
PythonLabs at Zope Corporation
From marco@morca.de Thu Nov 28 08:38:58 2002
From: marco@morca.de (Marco Machmer)
Date: Thu, 28 Nov 2002 09:38:58 +0100
Subject: [XML-SIG] PubIdResolver
In-Reply-To:
References:
Message-ID:
On Friday, 1. November 2002 22:20, Martin v. Loewis wrote:
> Marco Machmer writes:
> > i want set my own PubIdResolver for an xml-parser created with
> > sax2exts.XMLValParserFactory.make_parser()
> > has anybody a tip for me, how can i do this?
>
> You should invoke setEntityResolver, passing an object that implements
> the EntityResolver interface (see handler.EntityResolver).
>
> HTH,
> Martin
it doesn't work for me. here is my example code:
#
#
#
import sys
from xml.sax import sax2exts
from xml.dom.ext.reader import Sax2
from xml.sax.handler import EntityResolver
from xml.dom.ext import PrettyPrint
class MMEntityResolver(EntityResolver):
def resolveEntity(self, publicId, systemId):
"""Resolve the system identifier of an entity and return either
the system identifier to read from as a string, or an InputSource
to read from."""
print "MMEntityResolver: ich bin da"
print "publicId: " + str(publicId)
print "systemId: " + str(systemId)
if str(publicId) == "-//marco/gg//DE":
return open("test.dtd", 'r')
return systemId
myparser = sax2exts.XMLValParserFactory.make_parser()
er = MMEntityResolver()
myparser.setEntityResolver(er)
xreader = Sax2.Reader(parser=myparser)
xf = open(sys.argv[1], 'r')
myDom = xreader.fromStream(xf)
xf.close()
PrettyPrint(myDom)
##########
i get the following exception:
File "dom2.py", line 28, in ?
myDom = xreader.fromStream(xf)
File "/usr/lib/python2.1/site-packages/_xmlplus/dom/ext/reader/Sax2.py", line 373, in fromStream
self.parser.parse(s)
File "/usr/lib/python2.1/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.1/site-packages/_xmlplus/sax/drivers2/drv_xmlproc.py", line 93, in feed
self._parser.feed(data)
File "/usr/lib/python2.1/site-packages/_xmlplus/parsers/xmlproc/xmlval.py", line 44, in feed
self.parser.feed(data)
File "/usr/lib/python2.1/site-packages/_xmlplus/parsers/xmlproc/xmlutils.py", line 332, in feed
self.do_parse()
File "/usr/lib/python2.1/site-packages/_xmlplus/parsers/xmlproc/xmlproc.py", line 101, in do_parse
self.parse_doctype()
File "/usr/lib/python2.1/site-packages/_xmlplus/parsers/xmlproc/xmlproc.py", line 509, in parse_doctype
sys_id))
File "/usr/lib/python2.1/site-packages/_xmlplus/parsers/xmlproc/xmlutils.py", line 125, in parse_resource
self.report_error(3000, sysID)
File "/usr/lib/python2.1/site-packages/_xmlplus/parsers/xmlproc/xmlutils.py", line 524, in report_error
self.err.fatal(msg)
File "/usr/lib/python2.1/site-packages/_xmlplus/sax/drivers2/drv_xmlproc.py", line 226, in fatal
self._err_handler.fatalError(saxlib.SAXParseException(msg, None, self))
File "/usr/lib/python2.1/site-packages/_xmlplus/dom/ext/reader/Sax2.py", line 341, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: d1.xml:2:57: Couldn't open resource 'xtest.dtd'
#####
and here my xml-doc:
Gegbefuna Nwannem
666 Murtala Mohammed Blvd.
999-101-1001
nwanneg@naija.ng
any ideas
ma
--
*******************************************************
Marco Machmer
Phone : +49-2638-94 666 4
Fax : +49-2638-94 666 7
email : mailto:marco@morca.de
www : http://www.Marco-Machmer.de
Um ein tadelloses Mitglied einer Schafherde
sein zu koennen, muss man vor allem ein Schaf sein.
Albert Einstein
From martin@v.loewis.de Thu Nov 28 09:35:02 2002
From: martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=)
Date: 28 Nov 2002 10:35:02 +0100
Subject: [XML-SIG] PubIdResolver
In-Reply-To:
References:
Message-ID:
Marco Machmer writes:
> any ideas
Sorry, no. If you can find a solution to the problem, please
contribute a patch.
Otherwise, submit a bug report.
Regards,
Martin
From amarshmovva@yahoo.com Sat Nov 30 03:51:28 2002
From: amarshmovva@yahoo.com (Amarsh Movva)
Date: Fri, 29 Nov 2002 19:51:28 -0800 (PST)
Subject: [XML-SIG] RE: Transformation using XSLT
Message-ID: <20021130035128.59590.qmail@web12208.mail.yahoo.com>
--0-98488861-1038628288=:58020
Content-Type: text/plain; charset=us-ascii
hello,
I was looking for any information on XML transformation using XSLT, something like XALAN . Xalan supports Java and C++, does python have any modules that do the same. If yes can you please help me with some information about it.
Thanks
amarsh
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--0-98488861-1038628288=:58020
Content-Type: text/html; charset=us-ascii
hello,
I was looking for any information on XML transformation using XSLT, something like XALAN . Xalan supports Java and C++, does python have any modules that do the same. If yes can you please help me with some information about it.
Thanks
amarsh
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--0-98488861-1038628288=:58020--
From malcolm@commsecure.com.au Sat Nov 30 03:55:16 2002
From: malcolm@commsecure.com.au (Malcolm Tredinnick)
Date: Sat, 30 Nov 2002 14:55:16 +1100
Subject: [XML-SIG] RE: Transformation using XSLT
In-Reply-To: <20021130035128.59590.qmail@web12208.mail.yahoo.com>
References: <20021130035128.59590.qmail@web12208.mail.yahoo.com>
Message-ID: <20021130035516.GN1066@ws14.commsecure.com.au>
On Fri, Nov 29, 2002 at 07:51:28PM -0800, Amarsh Movva wrote:
> I was looking for any information on XML transformation using XSLT,
> something like XALAN . Xalan supports Java and C++, does python have
> any modules that do the same. If yes can you please help me with some
> information about it.
Daniel Veillard's libxslt library has Python bindings and it's extremely
fast. Have a look at http://www.xmlsoft.org/ for more information.
Cheers,
Malcolm
--
I just got lost in thought. It was unfamiliar territory.
From martin@v.loewis.de Sat Nov 30 10:17:30 2002
From: martin@v.loewis.de (Martin v. =?iso-8859-15?q?L=F6wis?=)
Date: 30 Nov 2002 11:17:30 +0100
Subject: [XML-SIG] RE: Transformation using XSLT
In-Reply-To: <20021130035128.59590.qmail@web12208.mail.yahoo.com>
References: <20021130035128.59590.qmail@web12208.mail.yahoo.com>
Message-ID:
Amarsh Movva writes:
> I was looking for any information on XML transformation using XSLT,
> something like XALAN . Xalan supports Java and C++, does python have
> any modules that do the same. If yes can you please help me with
> some information about it.
With PIRXX, Xalan supports Python.
Regards,
Martin
From Juergen Hermann"
Message-ID:
On 30 Nov 2002 11:17:30 +0100, Martin v. L=F6wis wrote:
>Amarsh Movva writes:
>
>> I was looking for any information on XML transformation using XSLT,
>> something like XALAN . Xalan supports Java and C++, does python have
>> any modules that do the same. If yes can you please help me with
>> some information about it.
>
>With PIRXX, Xalan supports Python.
Or with Pyana, maybe. ;)
Ciao, J=FCrgen
From james.kew@btinternet.com Sat Nov 30 17:38:02 2002
From: james.kew@btinternet.com (James Kew)
Date: Sat, 30 Nov 2002 17:38:02 -0000
Subject: [XML-SIG] PubIdResolver
References:
Message-ID: <009a01c29897$3bfcc4a0$541b27d9@btopenworld.com>
"Martin v. Löwis" wrote:
> submit a bug report.
Done, several months ago:
http://sourceforge.net/tracker/?group_id=6473&atid=106473&func=detail&aid=60
9590
I don't have the skill or the time available to work on a patch, sorry -- I
ended up working around it by reducing functionality.
James