From C.Gillespie at newcastle.ac.uk Tue Nov 2 14:13:50 2004
From: C.Gillespie at newcastle.ac.uk (Colin Gillespie)
Date: Tue Nov 2 14:17:09 2004
Subject: [XML-SIG] Xupdate remove problem
Message-ID: <20DA376D0C991745A4D5249F7BCD7A250D3827@largo.campus.ncl.ac.uk>
Dear All,
I have a debian testing system and after my latest update, my Xupdate stuff doesn't work.
Can anyone see what if wrong with these scripts? I'm trying to remove the first species.
Thanks
Colin
#xup.xml
#src.xml
> 4xupdate src.xml xup.xml
Nothing changes
From C.Gillespie at newcastle.ac.uk Tue Nov 2 16:42:18 2004
From: C.Gillespie at newcastle.ac.uk (Colin Gillespie)
Date: Tue Nov 2 16:43:41 2004
Subject: [XML-SIG] Xupdate remove problem
Message-ID: <20DA376D0C991745A4D5249F7BCD7A250D3828@largo.campus.ncl.ac.uk>
Dear All,
Sorry, I'm being a bit stupid. The reason the script didn't work was because //sbml:species[0] should be //sbml:species[1]
Thanks
Colin
-----Original Message-----
From: xml-sig-bounces@python.org on behalf of Colin Gillespie
Sent: Tue 11/2/2004 1:13 PM
To: xml-sig@python.org
Subject: [XML-SIG] Xupdate remove problem
Dear All,
I have a debian testing system and after my latest update, my Xupdate stuff doesn't work.
Can anyone see what if wrong with these scripts? I'm trying to remove the first species.
Thanks
Colin
#xup.xml
#src.xml
> 4xupdate src.xml xup.xml
Nothing changes
_______________________________________________
XML-SIG maillist - XML-SIG@python.org
http://mail.python.org/mailman/listinfo/xml-sig
From ps_python at yahoo.com Tue Nov 2 18:21:41 2004
From: ps_python at yahoo.com (kumar s)
Date: Tue Nov 2 18:21:44 2004
Subject: [XML-SIG] How to convert my data in database to XML
Message-ID: <20041102172141.71361.qmail@web53705.mail.yahoo.com>
Dear group,
I apologize for asking a very basic question here and
also I am afraid if this is not the correct place to
ask.
I have a database and I am plannig to pump my data in
the tables into XML files. For the kind of data in my
database table, there is already a proposed DTD out
there.
What I should be do in order to convert my existing
data in tables into XML files.
Do I have to:
1. Create any parser to convert the data into XML
structure.
2. Validate the integrity of XML structure based on
DTD provided.
I might not have all the data fields supported in the
DTD in my database. Is it okay if I leave some fields
as blank.
This e-mail is a jump-start e-mail for me. I program
in python by never touched XML and I am excited to do
that.
Please excuse my ignorance any violation of
appropriateness of e-mail content for list.
Thanks
Kumar
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com
From dkuhlman at cutter.rexx.com Thu Nov 4 00:05:15 2004
From: dkuhlman at cutter.rexx.com (Dave Kuhlman)
Date: Thu Nov 4 00:05:05 2004
Subject: [XML-SIG] How to convert my data in database to XML
In-Reply-To: <20041102172141.71361.qmail@web53705.mail.yahoo.com>;
from ps_python@yahoo.com on Tue, Nov 02, 2004 at 09:21:41AM -0800
References: <20041102172141.71361.qmail@web53705.mail.yahoo.com>
Message-ID: <20041103150515.A57084@cutter.rexx.com>
On Tue, Nov 02, 2004 at 09:21:41AM -0800, kumar s wrote:
> Dear group,
> I apologize for asking a very basic question here and
> also I am afraid if this is not the correct place to
> ask.
>
> I have a database and I am plannig to pump my data in
> the tables into XML files. For the kind of data in my
> database table, there is already a proposed DTD out
> there.
>
> What I should be do in order to convert my existing
> data in tables into XML files.
Your task sounds very straight-forward. You need to write a Python
application that reads your table, and writes data formatted as XML
to a file. In Python, that is easy to do. I have included a
simple example at the end of this email. This example reads a
table in a PostgreSQL database using psycopg - Python-PostgreSQL
Database Adapter (http://initd.org/Software/). If you do not
already have the database adapter you need for your database, you
can learn about others at: http://www.python.org/sigs/db-sig/.
>
> I might not have all the data fields supported in the
> DTD in my database. Is it okay if I leave some fields
> as blank.
>
Maybe. You might (1) include the tags with no data or (2) include
the tags with default values that you want to initialize or (3)
omit the tags altogether. This depends on your needs and on the
needs of the application that will consume the XML file you
produce.
Hope the helps.
Dave
Here is the trivial example:
import psycopg
CONNECT_ARGS = 'host=localhost user=postgres1 password=mypassword dbname=test'
def exportPlants(outfileName):
outfile = file(outfileName, 'w')
connection = psycopg.connect(CONNECT_ARGS)
cursor = connection.cursor()
cursor.execute("select * from Plant_DB order by p_name")
rows = cursor.fetchall()
outfile.write('\n')
outfile.write('\n')
for row in rows:
outfile.write(' \n')
outfile.write(' %s\n' % row[0])
outfile.write(' %s\n' % row[1])
outfile.write(' %s\n' % row[2])
outfile.write('
\n')
outfile.write('\n')
outfile.close()
And, here is sample output:
almonds
good nuts
4
apricot
sweet fruit
4
arugula
heavy taste
4
chard
leafy green
4
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
From malcolm at commsecure.com.au Thu Nov 4 00:34:45 2004
From: malcolm at commsecure.com.au (Malcolm Tredinnick)
Date: Thu Nov 4 00:41:13 2004
Subject: [XML-SIG] How to convert my data in database to XML
In-Reply-To: <20041103150515.A57084@cutter.rexx.com>
References: <20041102172141.71361.qmail@web53705.mail.yahoo.com>
<20041103150515.A57084@cutter.rexx.com>
Message-ID: <1099524885.12164.27.camel@ws14.commsecure.com.au>
On Wed, 2004-11-03 at 15:05 -0800, Dave Kuhlman wrote:
[...]
> Here is the trivial example:
>
> import psycopg
>
> CONNECT_ARGS = 'host=localhost user=postgres1 password=mypassword dbname=test'
>
> def exportPlants(outfileName):
> outfile = file(outfileName, 'w')
> connection = psycopg.connect(CONNECT_ARGS)
> cursor = connection.cursor()
> cursor.execute("select * from Plant_DB order by p_name")
> rows = cursor.fetchall()
> outfile.write('\n')
> outfile.write('\n')
> for row in rows:
> outfile.write(' \n')
> outfile.write(' %s\n' % row[0])
> outfile.write(' %s\n' % row[1])
> outfile.write(' %s\n' % row[2])
> outfile.write('
\n')
> outfile.write('\n')
> outfile.close()
Your example code will fail if the database data contains '<' or '&'
anywhere. One would need to convert these into the appropriate entity
references (< and &) first. The escape() method in
xml.sax.saxutils is pretty useful for this purpose.
Cheers,
Malcolm
From phthenry at earthlink.net Thu Nov 4 23:09:51 2004
From: phthenry at earthlink.net (Paul Tremblay)
Date: Thu Nov 4 23:10:31 2004
Subject: [XML-SIG] conflict with PyXML and 4suite
Message-ID: <20041104220951.GA3189@localhost.localdomain>
I have just downloaded the newest versions of both PyXML and 4Suite and
have problems with a conflict.
I used:
python setup.py --without-xpath build
ptyhon setup.py --without-xpath install
This sucessfully installs the PyXML package, and creates a _xmlplus
directory in my site-packages directory.
I think install the 4suite package. But when I run the test suite, I get
an error. I can only run 4suite successfully if I remove the _xmlplus
directory from my site-packages directory.
Could you cc me any response since I am not part of this mailing list?
Thanks
Paul
--
************************
*Paul Tremblay *
*phthenry@earthlink.net*
************************
From mike at skew.org Fri Nov 5 04:17:15 2004
From: mike at skew.org (Mike Brown)
Date: Fri Nov 5 04:17:16 2004
Subject: [XML-SIG] conflict with PyXML and 4suite
In-Reply-To: <20041104220951.GA3189@localhost.localdomain> "from Paul Tremblay
at Nov 4, 2004 05:09:51 pm"
Message-ID: <200411050317.iA53HFHq068727@chilled.skew.org>
Paul Tremblay wrote:
> I think install the 4suite package. But when I run the test suite, I get
> an error. I can only run 4suite successfully if I remove the _xmlplus
> directory from my site-packages directory.
>
> Could you cc me any response since I am not part of this mailing list?
Uh, not much to go on here.
When you say latest versions, do you mean PyXML 0.8.3 and 4Suite 1.0a3? Did
you have any other versions of PyXML or 4Suite installed previously? If so,
which ones, and do you have the old scripts in your binary path, still?
Any odd environment variables?
How did you install 4Suite? python setup.py install? Or did you install
an RPM or Windows binaries? Is this on Windows or Unix?
How did you go about running the test suite? What error did you get?
From dkuhlman at cutter.rexx.com Fri Nov 5 22:49:52 2004
From: dkuhlman at cutter.rexx.com (Dave Kuhlman)
Date: Fri Nov 5 22:49:46 2004
Subject: [XML-SIG] ANN: New version of generateDS.py
Message-ID: <20041105134952.A6170@cutter.rexx.com>
Version 1.7a of generateDS.py is available.
This new work was done with the help and guidance of Lloyd Kvam.
The significant new features are:
- Support for mixed content -- When an element is defined with
mixed="true", generateDS.py generates a class with a very
different data model, basically a list of container objects for
nested text and elements. It's clumsey and it has limitations,
but at least you are not completely stuck when your XML Schema
defines elements with mixed content.
- Extensions - When element A is defined as an extension whose base
is element B, then generateDS.py generates class A as a subclass
of class B. Thanks especially to Lloyd for his guidance in using
subclasses to solve this one. Without his guidance and design
suggestions, I would have wandered cluelessly into something
quite kludgy.
- Ability to access the text content of elements defined to have
attributes but no nested elements. Formerly, generateDS.py did
not support this. Now, for these classes, there is a valueOf_
member, which is used to access text content.
The lack of support for mixed content was discussed by Uche in his
article "XML Data Bindings in Python", which is at:
http://www.xml.com/pub/a/2003/06/11/py-xml.html
What is generateDS.py? -- generateDS.py generates Python data
structures (for example, class definitions) from an XML Schema
document. These data structures represent the elements in an XML
document described by the XML Schema. It also generates parsers
that load an XML document into those data structures, as well as
export methods that write classes out to XML and to Python literal
data structures. In addition, a separate file containing subclasses
(stubs) is optionally generated. The user can add methods to the
subclasses in order to process the contents of an XML document.
You can find generateDS.py here:
http://www.rexx.com/~dkuhlman/generateDS.html
http://www.rexx.com/~dkuhlman/generateDS-1.7a.tar.gz
And, as usually, your suggestions and comments are welcome.
Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
From uche.ogbuji at fourthought.com Mon Nov 8 03:10:31 2004
From: uche.ogbuji at fourthought.com (Uche Ogbuji)
Date: Mon Nov 8 03:10:35 2004
Subject: [XML-SIG] How to convert my data in database to XML
In-Reply-To: <20041102172141.71361.qmail@web53705.mail.yahoo.com>
References: <20041102172141.71361.qmail@web53705.mail.yahoo.com>
Message-ID: <1099879831.3372.41330.camel@borgia>
On Tue, 2004-11-02 at 10:21, kumar s wrote:
> Dear group,
> I apologize for asking a very basic question here and
> also I am afraid if this is not the correct place to
> ask.
>
> I have a database and I am plannig to pump my data in
> the tables into XML files. For the kind of data in my
> database table, there is already a proposed DTD out
> there.
>
> What I should be do in order to convert my existing
> data in tables into XML files.
>
> Do I have to:
> 1. Create any parser to convert the data into XML
> structure.
> 2. Validate the integrity of XML structure based on
> DTD provided.
>
> I might not have all the data fields supported in the
> DTD in my database. Is it okay if I leave some fields
> as blank.
>
> This e-mail is a jump-start e-mail for me. I program
> in python by never touched XML and I am excited to do
> that.
Well, since it sounds as if you'd like to solve your XML processing task
using Python, this probably is the right place. The only problem I can
see with your question is that there is not really enough detail for
anyone to help. Sounds as if you want to export data from a database
(what sort? SQL? Object? Hash table? You say "tables" so I'd guess
SQL). Which DBMS? Does it have XML export capabilities you can just
use without writing your own code? Does the DTD *require* (not just
allow) fields for which the source database has no value? If so, are
there business rules you can apply to set defaults? etc. etc. I could
ask a hundred questions, but it's much better if you just get specific
and tell us what tools you're using, your precise goals, etc. Snippets
of code or data samples will probably get you the best responses.
--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://4Suite.org http://fourthought.com
A hands-on introduction to ISO Schematron - http://www-106.ibm.com/developerworks/edu/x-dw-xschematron-i.html
Schematron abstract patterns - http://www.ibm.com/developerworks/xml/library/x-stron.html
Wrestling HTML (using Python) - http://www.xml.com/pub/a/2004/09/08/pyxml.html
XML's growing pains - http://www.adtmag.com/article.asp?id=10196
XMLOpen and more XML Hacks - http://www.ibm.com/developerworks/xml/library/x-think27.html
A survey of XML standards - http://www-106.ibm.com/developerworks/xml/library/x-stand4/
From subha.fernando at gmail.com Mon Nov 8 05:47:22 2004
From: subha.fernando at gmail.com (Subha Fernando)
Date: Mon Nov 8 05:47:59 2004
Subject: [XML-SIG] newbie queries on xml processing
Message-ID: <31f4e3904110720476e442a5e@mail.gmail.com>
Hi,
I'm new to this group as well as to Python & XML. I needed some good
documentation where I cld learn abt XML Processing in Python...any
free e-book available on the net??? I wanted to start off with
it...but I'm not coming across good books...pls someone guide!
Thanks,
Subha:)
From postmaster at python.org Tue Nov 9 11:36:09 2004
From: postmaster at python.org (MAILER-DAEMON)
Date: Tue Nov 9 11:37:30 2004
Subject: [XML-SIG] MDaemon Warning - virus found: Status
Message-ID: <20041109103729.D0AE81E4002@bag.python.org>
******************************* WARNING ******************************
Este mensaje ha sido analizado por MDaemon AntiVirus y ha encontrado
un fichero anexo(s) infectado(s). Por favor revise el reporte de abajo.
Attachment Virus name Action taken
----------------------------------------------------------------------
message.zip I-Worm.Mydoom.m Removed
**********************************************************************
The original message was received at Tue, 9 Nov 2004 11:36:09 +0100
from python.org [27.72.103.7]
----- The following addresses had permanent fatal errors -----
xml-sig@python.org
----- Transcript of session follows -----
... while talking to python.org.:
>>> DATA
<<< 400-aturner; %MAIL-E-OPENOUT, error opening !AS as output
<<< 400-aturner; -SYSTEM-F-EXDISKQUOTA, disk quota exceeded
<<< 400
From timh at zute.net Wed Nov 10 07:32:37 2004
From: timh at zute.net (Tim Hoffman)
Date: Wed Nov 10 07:33:17 2004
Subject: [XML-SIG] question about behaviour of __poptag in
xml.sax.writer.XmlWriter
Message-ID: <4191B605.9050506@zute.net>
Hi
I have been using PyXML sax based XmlWriter (xml.sax.writer.XmlWriter)
to produce valid xml.
One of my objectives was to ensure that even if a process was
interrupted (though not catastrophically)
that the my close method could successfully close all tags and I end up
with a wellformed XML file.
No given that XmLWriter keeps track of state I thought I could
just have a stack of try blocks that could close each tag rather than me
tracking state as well, i.e.
try:
self._logger.endElement( u'items')
except RuntimeError,e:
pass
try:
self._logger.endElement( u'page')
except RuntimeError,e:
pass
try:
self._logger.endElement( u'pages')
except RuntimeError,e:
pass
try:
self._logger.endElement( u'template')
except RuntimeError,e:
pass
As there didn't seem to be any point in my keeping track of something
that was already managed.
However __poptag
def __poptag(self, tag):
state = self.__stack.pop()
self._flowing, self.__lang, expected_tag, \
self._packing, self._dtdflowing = state
if tag != expected_tag:
raise RuntimeError, \
"expected %s>, got %s>" % (expected_tag, tag)
self._prefix = self._prefix[:-self.indentation]
which manages the state doesn't restore the stack state after a
RuntimeError is raised. So it is destructive even on error.
For what I am doing a simple fix that I used was to restore the stack in
the event of a RuntimeError
as in
def __poptag(self, tag):
state = self.__stack.pop()
self._flowing, self.__lang, expected_tag, \
self._packing, self._dtdflowing = state
if tag != expected_tag:
self.__stack.append(state) # restore state
raise RuntimeError, \
"expected %s>, got %s>" % (expected_tag, tag)
self._prefix = self._prefix[:-self.indentation]
It would seem to me, that not restoring the stack is probably wrong
when a runtime error has been raised.
You may not want to bail out completely when this occurs and take
corrective action, but then you have try and pick
apart the error string to work out what went wrong. you have no way of
winding back and recovering and outputting the
correct tag because you have none of the other details that are stored
in the stack with the tag (state).
At least in my case this approach/fix works very well, but there may be
other cases that
I haven't thought about where this approach breaks down.
What are other peoples thoughts on this ? Is the existing behaviour
mandated as part of the standard API ?
Rgds
Tim Hoffman
From matthias-gmane at mteege.de Tue Nov 9 10:52:36 2004
From: matthias-gmane at mteege.de (Matthias Teege)
Date: Wed Nov 10 08:25:48 2004
Subject: [XML-SIG] remove elements by tagname
Message-ID: <86k6svtklh.fsf@mut.mteege.de>
I can get all elements by name with
doc.getElementsByTagName("table:table-row") for example but how do I
remove all elements by tag name?
Matthias
--
Matthias Teege -- http://www.mteege.de
make world not war
From Alexandre.Fayolle at logilab.fr Wed Nov 10 09:06:45 2004
From: Alexandre.Fayolle at logilab.fr (Alexandre)
Date: Wed Nov 10 09:06:19 2004
Subject: [XML-SIG] remove elements by tagname
In-Reply-To: <86k6svtklh.fsf@mut.mteege.de>
References: <86k6svtklh.fsf@mut.mteege.de>
Message-ID: <20041110080645.GA15474@crater.logilab.fr>
On Tue, Nov 09, 2004 at 10:52:36AM +0100, Matthias Teege wrote:
> I can get all elements by name with
> doc.getElementsByTagName("table:table-row") for example but how do I
> remove all elements by tag name?
You'll have to manually removeChild each node you get from
getElementsByTagName from its parentNode.
--
Alexandre Fayolle LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.python.org/pipermail/xml-sig/attachments/20041110/0e0bf6f3/attachment.pgp
From noreply at sourceforge.net Thu Nov 11 21:02:18 2004
From: noreply at sourceforge.net (SourceForge.net)
Date: Thu Nov 11 21:02:21 2004
Subject: [XML-SIG] [ pyxml-Bugs-1064741 ] Spurious exceptions in
xml.sax.drivers.drv_pyexpat
Message-ID:
Bugs item #1064741, was opened at 2004-11-11 21:02
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=1064741&group_id=6473
Category: SAX
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Miloslav Trmac (trmac)
Assigned to: Nobody/Anonymous (nobody)
Summary: Spurious exceptions in xml.sax.drivers.drv_pyexpat
Initial Comment:
Expat 1.95.7 is stricter about parsing state and
reports an error,
converted to an exception by pexpat, in Parse() if
parsing is already
done.
In the current (Nov 11 2004) CVS checkout, this happens in
xml.sax.drivers.drv_pyexpat.SAX_expat.close(): e.g
parseFile()
calls self.parser.Parse("", 1) and then calls self.close();
the following self.parser.Parse("", 0) throws an
ExpatException.
close() should probably check the current state and do the
"catch errors" Parse call only if parsing has not stopped.
Checking current state can be done using
XML_GetParsingStatus(),
which is apparently not available through pyexpat,
unfortunately.
The problem is easily reproducible by running the PyXML
testsuite;
test_marshal and test_saxdrivers fail, the tail of the
traceback being
e.g.
File
"/home/mitr/PyXML-0.8.4/test/test_saxdrivers.py", line
64, in test_sax1
parser.parseFile(open(findfile("test.xml")))
File
"/usr/lib/python2.4/site-packages/_xmlplus/sax/drivers/drv_pyexpat.py",
line 74, in parseFile
self.close()
File
"/usr/lib/python2.4/site-packages/_xmlplus/sax/drivers/drv_pyexpat.py",
line 132, in close
if self.parser.Parse("", 0) != 1:
ExpatError: parsing finished: line 116, column 0
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=1064741&group_id=6473
From encoder-iso-8859-3 at mozilla.org Sat Nov 13 16:47:10 2004
From: encoder-iso-8859-3 at mozilla.org (encoder-iso-8859-3@mozilla.org)
Date: Sat Nov 13 16:47:33 2004
Subject: [XML-SIG] Delivery reports about your e-mail
Message-ID: <20041113154731.921D71E4002@bag.python.org>
Your message was not delivered due to the following reason(s):
Your message could not be delivered because the destination server was
unreachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.
Most likely there is a network problem that prevented delivery, but
it is also possible that the computer is turned off, or does not
have a mail system running right now.
Your message could not be delivered within 2 days:
Host 57.254.50.238 is not responding.
The following recipients did not receive this message:
Please reply to postmaster@mozilla.org
if you feel this message to be in error.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mail.zip
Type: application/octet-stream
Size: 29356 bytes
Desc: not available
Url : http://mail.python.org/pipermail/xml-sig/attachments/20041113/7675d10b/mail-0001.obj
From CGlenn at peirce.edu Sat Nov 13 18:08:30 2004
From: CGlenn at peirce.edu (Glenn, Charlene)
Date: Sat Nov 13 18:08:20 2004
Subject: [XML-SIG] Out of Office AutoReply: Returned mail: Data format error
Message-ID: <79A343E01A8ACE49B76AD97B94D48BAEC5867A@s-2k-msg-02.main-campus.peirce-college.edu>
Starting September 1, 2004, I will be on sabbatical for four months. I will return to the office at the beginning of the spring term in January, 2005. I will respond to my emails when I return to the office in January. Thanks Professor Glenn
From usuario1 at thedailyvideo.com Sat Nov 13 19:54:54 2004
From: usuario1 at thedailyvideo.com (usuario1@thedailyvideo.com)
Date: Sat Nov 13 19:56:19 2004
Subject: [XML-SIG] Test
Message-ID: <20041113185618.813CD1E4002@bag.python.org>
The original message was received at Sat, 13 Nov 2004 13:54:54 -0500 from 106.131.20.94
----- The following addresses had permanent fatal errors -----
xml-sig@python.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mail.zip
Type: application/octet-stream
Size: 29060 bytes
Desc: not available
Url : http://mail.python.org/pipermail/xml-sig/attachments/20041113/fd3c6b14/mail-0001.obj
From Hefferon9 at aol.com Sun Nov 14 00:24:14 2004
From: Hefferon9 at aol.com (Hefferon9@aol.com)
Date: Sun Nov 14 00:24:23 2004
Subject: [XML-SIG] escaping ' or " in attributes
Message-ID: <190.32f3b50b.2ec7f19e@aol.com>
Hello,
Please, may I ask two similar questions? No doubt they are silly; but I've
looked for the answer in books, in the docs, in clp, and here, and had no
luck.
1) What is the canonical way to escape the quotes inside of an attribute? I
have a cgi script, and may be getting things from users that I want to stuff
inside of the attributes. That is, I have code like this:
favoriteFood=fs.getfirst('favoriteFood') # fs is a cgi.FieldStorage
structure
attrDct={'favoriteFood':favoriteFood}
and I'm afraid I'll get "Mama's" for an answer, giving me XML like
(likewise, "Ben & Jerry's" gives me worries) I've cast about for what I
thought were likely names, but didn't find any .
2) Similarly, in XHTML, in an href, is there some obvious function that I
somehow overlooked to quote the ampersands?
Possibly both have the same answer?
I can do a substitution by hand of course, but I'm trying to learn the best
practices, and also I conceive that one of the points of a library to give me
peace of mind that its taken care of obscure cases that I might not
understand.
Thanks in advance,
Jim Hefferon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/xml-sig/attachments/20041113/f14d1d66/attachment.htm
From rsalz at datapower.com Sun Nov 14 00:33:16 2004
From: rsalz at datapower.com (Rich Salz)
Date: Sun Nov 14 00:33:19 2004
Subject: [XML-SIG] escaping ' or " in attributes
In-Reply-To: <190.32f3b50b.2ec7f19e@aol.com>
Message-ID:
> I can do a substitution by hand of course, but I'm trying to learn the best
> practices, and also I conceive that one of the points of a library to give me
> peace of mind that its taken care of obscure cases that I might not
> understand.
Nope, that's all there is. Within an attribute you only have to replace
whatever your quoting character is (single or double quote) and ampersand.
For example:
s.replace('&', '&').replace('"', '"')
then you can the attribute value as
print 'myattr="%s"' % s
or wahtever's appropriate.
/r$
--
Rich Salz Chief Security Architect
DataPower Technology http://www.datapower.com
XS40 XML Security Gateway http://www.datapower.com/products/xs40.html
XML Security Overview http://www.datapower.com/xmldev/xmlsecurity.html
From mike at skew.org Sun Nov 14 22:45:02 2004
From: mike at skew.org (Mike Brown)
Date: Sun Nov 14 22:45:05 2004
Subject: [XML-SIG] escaping ' or " in attributes
In-Reply-To: <190.32f3b50b.2ec7f19e@aol.com> "from Hefferon9@aol.com at Nov 13,
2004 06:24:14 pm"
Message-ID: <200411142145.iAELj2Aw005952@chilled.skew.org>
Hefferon9@aol.com wrote:
> 1) What is the canonical way to escape the quotes inside of an attribute? I
> have a cgi script, and may be getting things from users that I want to stuff
> inside of the attributes. That is, I have code like this:
> favoriteFood=fs.getfirst('favoriteFood') # fs is a cgi.FieldStorage
> structure
> attrDct={'favoriteFood':favoriteFood}
> and I'm afraid I'll get "Mama's" for an answer, giving me XML like
>
> (likewise, "Ben & Jerry's" gives me worries) I've cast about for what I
> thought were likely names, but didn't find any .
Depends on how you're creating the X(HT)ML. If you're just doing
prints then of course you will need to do your own replacements.
I suggest you read Uche Ogbuji's article on xml.com entitled
"Proper XML Output In Python" (Google for it)
One thing you should note is that XML has an "apos" entity, but HTML does not.
Therefore if you are intending to generate HTML 4.0 browser compatible XHTML
(as it appears you are), then you need to use "'" instead of "'" when
putting an apostrophe/single-quote in an attribute value that is delimited by
those same characters.
From lionny at cantv.net Mon Nov 15 15:26:29 2004
From: lionny at cantv.net (lionny@cantv.net)
Date: Mon Nov 15 15:27:39 2004
Subject: [XML-SIG] Returned mail: see transcript for details
Message-ID: <20041115142738.81DFE1E4002@bag.python.org>
This message was undeliverable due to the following reason(s):
Your message could not be delivered because the destination server was
unreachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.
Most likely there is a network problem that prevented delivery, but
it is also possible that the computer is turned off, or does not
have a mail system running right now.
Your message could not be delivered within 1 days:
Server 25.17.213.137 is not responding.
The following recipients could not receive this message:
Please reply to postmaster@python.org
if you feel this message to be in error.
-------------- next part --------------
File attachment: attachment.zip
Symantec ha aplicado la politica de antivirus para correos, el cual fue eliminado
Result: Virus Detected
Virus Name: W32.Mydoom.M@mm
File Attachment: attachment.zip
Attachment Status: deleted
From hills838 at hotmail.com Thu Nov 18 05:53:02 2004
From: hills838 at hotmail.com (hills)
Date: Thu Nov 18 05:54:09 2004
Subject: [XML-SIG] The limitation of the Photon Hypothesis
Message-ID: <20041118045407.DCA341E4006@bag.python.org>
Please reply to hdgbyi@public.guangzhou.gd.cn.
Thank you!
The limitation of the Photon Hypothesis
According to the electromagnetic theory of light, its energy is related to the amplitude of the electric field of the electromagnetic wave, W=eE^2(where E is the amplitude). It apparently has nothing to do with the light's circular frequency v.
To explain the photoelectric effect, Einstein put forward the photon hypothesis. His paper hypothesized light was made of quantum packets of energy called photons. Each photon carried a specific energy related to its circular frequency v, E=hv. This has nothing to do with the amplitude of the electromagnetic wave.
For the electromagnetic wave that the amplitude E has nothing to do with the light's frequency v, if the light's frequency v is high enough, the energy of the photon in light is greater than the light's energy, hv>eE^2. Apparently, this is incompatible with the electromagnetic theory of light.
THE UNCERTAINTY PRINCIPLE IS UNTENABLE
By re-analysing Heisenberg's Gamma-Ray Microscope experiment and one of the thought experiment from which the uncertainty principle is demonstrated, it is actually found that the uncertainty principle cannot be demonstrated by them. It is therefore found to be untenable.
Key words:
uncertainty principle; Heisenberg's Gamma-Ray Microscope Experiment; thought experiment
The History Of The Uncertainty Principle
If one wants to be clear about what is meant by "position of an object," for example of an electron., then one has to specify definite experiments by which the "position of an electron" can be measured; otherwise this term has no meaning at all. --Heisenberg, in uncertainty paper, 1927
Are the uncertainty relations that Heisenberg discovered in 1927 just the result of the equations used, or are they really built into every measurement? Heisenberg turned to a thought experiment, since he believed that all concepts in science require a definition based on actual, or possible, experimental observations.
Heisenberg pictured a microscope that obtains very high resolution by using high-energy gamma rays for illumination. No such microscope exists at present, but it could be constructed in principle. Heisenberg imagined using this microscope to see an electron and to measure its position. He found that the electron's position and momentum did indeed obey the uncertainty relation he had derived mathematically. Bohr pointed out some flaws in the experiment, but once these were corrected the demonstration was fully convincing.
Thought Experiment 1
The corrected version of the thought experiment
Heisenberg's Gamma-Ray Microscope Experiment
A free electron sits directly beneath the center of the microscope's lens (please see AIP page http://www.aip.org/history/heisenberg/p08b.htm or diagram below) . The circular lens forms a cone of angle 2A from the electron. The electron is then illuminated from the left by gamma rays--high-energy light which has the shortest wavelength. These yield the highest resolution, for according to a principle of wave optics, the microscope can resolve (that is, "see" or distinguish) objects to a size of dx, which is related to and to the wavelength L of the gamma ray, by the expression:
dx = L/(2sinA) (1)
However, in quantum mechanics, where a light wave can act like a particle, a gamma ray striking an electron gives it a kick. At the moment the light is diffracted by the electron into the microscope lens, the electron is thrust to the right. To be observed by the microscope, the gamma ray must be scattered into any angle within the cone of angle 2A. In quantum mechanics, the gamma ray carries momentum as if it were a particle. The total momentum p is related to the wavelength by the formula,
p = h / L, where h is Planck's constant. (2)
In the extreme case of diffraction of the gamma ray to the right edge of the lens, the total momentum would be the sum of the electron's momentum P'x in the x direction and the gamma ray's momentum in the x direction:
P' x + (h sinA) / L', where L' is the wavelength of the deflected gamma ray.
In the other extreme, the observed gamma ray recoils backward, just hitting the left edge of the lens. In this case, the total momentum in the X direction is:
P''x - (h sinA) / L''.
The final x momentum in each case must equal the initial X momentum, since momentum is conserved. Therefore, the final X moment are equal to each other:
P'x + (h sinA) / L' = P''x - (h sinA) / L'' (3)
If A is small, then the wavelengths are approximately the same,
L' ~ L" ~ L. So we have
P''x - P'x = dPx ~ 2h sinA / L (4)
Since dx = L/(2 sinA), we obtain a reciprocal relationship between the minimum uncertainty in the measured position, dx, of the electron along the X axis and the uncertainty in its momentum, dPx, in the x direction:
dPx ~ h / dx or dPx dx ~ h. (5)
For more than minimum uncertainty, the "greater than" sign may added.
Except for the factor of 4pi and an equal sign, this is Heisenberg's uncertainty relation for the simultaneous measurement of the position and momentum of an object.
Re-analysis
The original analysis of Heisenberg's Gamma-Ray Microscope Experiment overlooked that the microscope cannot see the object whose size is smaller than its resolving limit, dx, thereby overlooking that the electron which relates to dx and dPx respectively is not the same.
According to the truth that the microscope can not see the object whose size is smaller than its resolving limit, dx, we can obtain that what we can see is the electron where the size is larger than or equal to the resolving limit dx and has a certain position, dx = 0.
The microscope can resolve (that is, "see" or distinguish) objects to a size of dx, which is related to and to the wavelength L of the gamma ray, by the expression:
dx = L/(2sinA) (1)
This is the resolving limit of the microscope and it is the uncertain quantity of the object's position.
The microscope cannot see the object whose size is smaller than its resolving limit, dx. Therefore, to be seen by the microscope, the size of the electron must be larger than or equal to the resolving limit.
But if the size of the electron is larger than or equal to the resolving limit dx, the electron will not be in the range dx. Therefore, dx cannot be deemed to be the uncertain quantity of the electron's position which can be seen by the microscope, but deemed to be the uncertain quantity of the electron's position which can not be seen by the microscope. To repeat, dx is uncertainty in the electron's position which cannot be seen by the microscope.
To be seen by the microscope, the gamma ray must be scattered into any angle within the cone of angle 2A, so we can measure the momentum of the electron. But if the size of the electron is smaller than the resolving limit dx, the electron cannot be seen by the microscope, we cannot measure the momentum of the electron. Only the size of the electron is larger than or equal to the resolving limit dx, the electron can be seen by the microscope, we can measure the momentum of the electron. According to Heisenberg's Gamma-Ray Microscope Experiment, the electron¡¯s momentum is uncertain, the uncertainty in its momentum is dPx.
dPx is the uncertainty in the electron's momentum which can be seen by microscope.
What relates to dx is the electron where the size is smaller than the resolving limit. When the electron is in the range dx, it cannot be seen by the microscope, so its position is uncertain, and its momentum is not measurable, because to be seen by the microscope, the gamma ray must be scattered into any angle within the cone of angle 2A, so we can measure the momentum of the electron. If the electron cannot be seen by the microscope, we cannot measure the momentum of the electron.
What relates to dPx is the electron where the size is larger than or equal to the resolving limit dx .The electron is not in the range dx, so it can be seen by the microscope and its position is certain, its momentum is measurable.
Apparently, the electron which relates to dx and dPx respectively is not the same. What we can see is the electron where the size is larger than or equal to the resolving limit dx and has a certain position, dx = 0.
Quantum mechanics does not rely on the size of the object, but on Heisenberg's Gamma-Ray Microscope experiment. The use of the microscope must relate to the size of the object. The size of the object which can be seen by the microscope must be larger than or equal to the resolving limit dx of the microscope, thus the uncertain quantity of the electron's position does not exist. The gamma ray which is diffracted by the electron can be scattered into any angle within the cone of angle 2A, where we can measure the momentum of the electron.
What we can see is the electron which has a certain position, dx = 0, so that in no other position can we measure the momentum of the electron. In Quantum mechanics, the momentum of the electron can be measured accurately when we measure the momentum of the electron only, therefore, we have gained dPx = 0.
And,
dPx dx =0. (6)
Thought Experiment 2
Single Slit Diffraction Experiment
Suppose a particle moves in the Y direction originally and then passes a slit with width dx(Please see diagram below) . The uncertain quantity of the particle's position in the X direction is dx, and interference occurs at the back slit . According to Wave Optics , the angle where No.1 min of interference pattern can be calculated by following formula:
sinA=L/2dx (1)
and L=h/p where h is Planck's constant. (2)
So the uncertainty principle can be obtained
dPx dx ~ h (5)
Re-analysis
The original analysis of Single Slit Diffraction Experiment overlooked the corpuscular property of the particle and the Energy-Momentum conservation laws and mistook the uncertain quantity of the particle's position in the X direction is the slit's width dx.
According to Newton first law , if an external force in the X direction does not affect the particle, it will move in a uniform straight line, ( Motion State or Static State) , and the motion in the Y direction is unchanged .Therefore , we can learn its position in the slit from its starting point.
The particle can have a certain position in the slit and the uncertain quantity of the position is dx =0. According to Newton first law , if the external force at the X direction does not affect particle, and the original motion in the Y direction is not changed , the momentum of the particle in the X direction will be Px=0 and the uncertain quantity of the momentum will be dPx =0.
This gives:
dPx dx =0. (6)
No experiment negates NEWTON FIRST LAW. Whether in quantum mechanics or classical mechanics, it applies to the microcosmic world and is of the form of the Energy-Momentum conservation laws. If an external force does not affect the particle and it does not remain static or in uniform motion, it has disobeyed the Energy-Momentum conservation laws. Under the above thought experiment , it is considered that the width of the slit is the uncertain quantity of the particle's position. But there is certainly no reason for us to consider that the particle in the above experiment has an uncertain position, and no reason for us to consider that the slit's width is the uncertain quantity of the particle. Therefore, the uncertainty principle,
dPx dx ~ h (5)
which is demonstrated by the above experiment is unreasonable.
Conclusion
Every physical principle is based on the Experiments, not based on MATHEMATICS, including heisenberg uncertainty principle. Einstein said, One Experiment is enough to negate a physical principle.
>From the above re-analysis , it is realized that the thought experiment demonstration for the uncertainty principle is untenable. Therefore, the uncertainty principle is untenable.
Reference:
1. Max Jammer. (1974) The philosophy of quantum mechanics (John wiley & sons , Inc New York ) Page 65
2. Ibid, Page 67
3. http://www.aip.org/history/heisenberg/p08b.htm
Single Particles Do Not Exhibit Wave-Like Behavior
Through a qualitative analysis of the experiment, it is shown that the presumed wave-like behavior of a single particle contradicts the energy-momentum conservation laws and may be expained solely through particle interactions.
DUAL SLIT INTERFERENCE EXPERIMENT
PART I
If a single particle has wave-like behavior, it will create an interference image when it has passed through a single slit. But the experimental result shows that this is not the case Only a large number of particles can create an interference image when they pass through the two slits.
PART II
In the dual slit interference experiment, the single particle is thought to pass through both slits and interfere with itself at the same time due to its wave-like behavior. The motion of the wave is the same direction as the particle. If the particle passes through a single slit only, it can not be assumed that it has wave-like behavior. If it passes through two slits, it, and also the acompanying wave must be assumed to have motion in two directions. But a wave only has one direction of motion.
PART III
If one slit is obstructed in the dual slit interference experiment and a particle is launched in this direction, then according to Newton¡¯s first law, (assuming no external forces,) it will travel in a uniform straight line. It will not pass through the closed slit and will not make contact with the screen. If it has wavelike behavior, there is a probability that it will make contact. But this will negate Newton¡¯s first law and the law of conservation of energy and momentum. Both quantum mechanics and classical mechanics are dependent on this law.
THE EXPLANATION FOR
THE WAVE-LIKE BEHAVIOR
OF THE PARTICLE
In the dual slit interference experiment, if one slit is unobstructed, particles will impact at certain positions on the screen. But when two slit are open, the particles can not reach these positions. This phenomenon brings us to the greatest puzzle regarding the image of the particle. But when we consider that the particle may experience two or more reflections, the puzzle may be resolved.
As indicated, when one of the slits is obstructed, the particles that move towards this slit can not get to the screen. However, they can return to the particle source by reflection and then pass through the open slit and reach the above positions since they have different paths when one or two slits are open. This indicates that wave-like behavior may be explained solely on the basis of particle interactions.
EXPERIMENTAL TEST
The above may be tested by an experiment which can absorb all the particles that move towards the closed slit. If one slit is obstructed by the stuff which can absorb all the particles that move towards it, the intensity of some positions on the screen should decrease.
THE CONCLUSION
Single particles do not exhibit wave-like behavior.
The similarity of wave and particle behavior may be attributed to initial impulse and path.
The quantum mechanical explanation is suspect, since the probability of one particle and one particle among a large quantity reaching the screen is equal in mathematics and physics.
Author : BingXin Gong
Postal address : P.O.Box A111 YongFa XiaoQu XinHua HuaDu
GuangZhou 510800 P.R.China
E-mail: hdgbyi@public.guangzhou.gd.cn
Tel: 86---20---86856616
From office at cambridgevineyard.org.uk Thu Nov 18 09:27:48 2004
From: office at cambridgevineyard.org.uk (office@cambridgevineyard.org.uk)
Date: Thu Nov 18 09:26:15 2004
Subject: [XML-SIG] Returned mail: User unknown
Message-ID: <20041118082612.WXFN24809.aamta05-winn.mailhost.ntl.com@any>
The original message was received at Thu, 18 Nov 2004 08:23:08 +0000
----- The following addresses had permanent fatal errors -----
----- Transcript of session follows -----
... while talking to pop.ntlworld.com:
>>> RCPT To:
<<< 550 ... User unknown
550 ... User unknown
-------------- next part --------------
An embedded message was scrubbed...
From:
Subject:
Date:
Size: 205
Url: http://mail.python.org/pipermail/xml-sig/attachments/20041118/fcbcdfb3/Re_Re_Message.eml
From paandev at yahoo.com Thu Nov 18 12:02:47 2004
From: paandev at yahoo.com (Wara Songkran)
Date: Thu Nov 18 12:02:50 2004
Subject: [XML-SIG] How to port PyXML and Expat to Python PPC
Message-ID: <20041118110247.88410.qmail@web51305.mail.yahoo.com>
Hi
I've try Python-2.3.4-arm-PPC2003 and it works very well. But unfortunately it missing pyexpat.pyd module. I understand that the module is the wrapper of native expat library and the guy who port Python 2.3.4 to WinCE does not port it.
I think it will be very nice to have a PyXML with Expat working on Pocket PC. I've try download and building PyXML on win2000 with MSVC 6.0 and it works well. So I think it must not be very hard to build with embedded visual C++. But I need an instruction to start working.
Plese tell me how do I get started.
Regard
Wara Songkran
---------------------------------
Do you Yahoo!?
Meet the all-new My Yahoo! – Try it today!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/xml-sig/attachments/20041118/94508a36/attachment.html
From uche.ogbuji at fourthought.com Sat Nov 20 07:44:38 2004
From: uche.ogbuji at fourthought.com (Uche Ogbuji)
Date: Sat Nov 20 07:44:42 2004
Subject: [XML-SIG] ANN: 4Suite 1.0a4
Message-ID: <1100933078.4745.254.camel@borgia>
Today we release 1.0 alpha 4, now available from Sourceforge and
ftp.4suite.org.
4Suite is a comprehensive platform for XML and RDF processing, with base
libraries and a server framework. It is implemented in Python and C,
and provides Python and XSLT APIs, Web and command line interfaces.
For general information, see:
http://4suite.org
http://uche.ogbuji.net/tech/4Suite/
http://uche.ogbuji.net/tech/akara/nodes/2003-01-01/4suite-section
For the files, see:
ftp://ftp.4suite.org/pub/4Suite/
Sources:
ftp://ftp.4suite.org/pub/4Suite/4Suite-1.0a4.tar.gz
Windows installer:
ftp://ftp.4suite.org/pub/4Suite/4Suite-1.0a4.win32-py2.2.exe
ftp://ftp.4suite.org/pub/4Suite/4Suite-1.0a4.win32-py2.3.exe
ftp://ftp.4suite.org/pub/4Suite/4Suite-1.0a4.win32-py2.4.exe
Windows zip:
ftp://ftp.4suite.org/pub/4Suite/4Suite-1.0a4.zip
You can also get the files on Sourceforge:
https://sourceforge.net/projects/foursuite/
https://sourceforge.net/project/showfiles.php?group_id=39954
Documentation:
In the locations specified above, with filenames of the form
4Suite-docs-1.0a4.*
Highlights of changes
--
This release has been extremely an long time in coming, and a great
number of changes have come about. I'll try my best to summarize:
* Python 2.2.1 is now the minimum required version
* Feature enhancements for the domlettes, including
- Ability to control encoding for parse
- Ability to parse from general entities (i.e. multiple root elements)
- .xpath() convenience method on nodes
* Feature enhancements for the repository, including
- MySQL driver
- Flat File driver is no longer flat (now uses native directories)
- Repository / Driver API restructured
- ftss: URI scheme used throughout
* Feature enhancements for Versa, including
- Versa functions to control query scoping
* Pruning of built-in XPath and XSLT extensions for consistency with
EXSLT
* Other API changes (mostly just name changes or adding optional
functionality). Old names work, but are deprecated and trigger
warnings
* cDomlette is stable and FtMiniDom is deprecated.
* Improvements to packaging and deployment
* Numerous performance enhancements
* Numerous bug fixes
IMPORTANT alpha release notes
--
If you have built a 4Suite repository using an older version of 4Suite,
you will probably have to make adjustments for this new release. If you
used 0.12.0a3, or a more recent version, then you will have to follow
the
migration instructions detailed in the following message:
http://lists.fourthought.com/pipermail/4suite/2004-October/012933.html
In general, it's worth being familiar with the following document:
http://uche.ogbuji.net/tech/akara/nodes/2003-01-01/backup
There have been on and off problems for Mac OS X users. Please
see the following page for current status, notes and recommendations:
http://uche.ogbuji.net/tech/akara/nodes/2003-01-01/osx
Installation locations have changed on both Windows and Unix.
See the current installation directory layout document at:
http://4suite.org/docs/installation-locations.xhtml
If there is a server config files at the default location for the
build and platform (e.g. /usr/local/lib/4Suite/4ss.conf by default on
UNIX), it will be renamed to 4ss.conf.old and then overwritten.
For insulation from Domlette implementation changes, developers should
always use the generic Ft.Xml.Domlette APIs (rather than, say
Ft.Xml.cDomlette).
--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://4Suite.org http://fourthought.com
A hands-on introduction to ISO Schematron - http://www-106.ibm.com/developerworks/edu/x-dw-xschematron-i.html
Schematron abstract patterns - http://www.ibm.com/developerworks/xml/library/x-stron.html
Wrestling HTML (using Python) - http://www.xml.com/pub/a/2004/09/08/pyxml.html
XML's growing pains - http://www.adtmag.com/article.asp?id=10196
XMLOpen and more XML Hacks - http://www.ibm.com/developerworks/xml/library/x-think27.html
A survey of XML standards - http://www-106.ibm.com/developerworks/xml/library/x-stand4/
From rgonzalo at inelcom.com Mon Nov 22 10:19:31 2004
From: rgonzalo at inelcom.com (rgonzalo@inelcom.com)
Date: Mon Nov 22 10:20:45 2004
Subject: [XML-SIG] MDaemon Warning - virus found: Error
Message-ID: <20041122092045.11E3C1E4002@bag.python.org>
******************************* WARNING ******************************
Este mensaje ha sido analizado por MDaemon AntiVirus y ha encontrado
un fichero anexo(s) infectado(s). Por favor revise el reporte de abajo.
Attachment Virus name Action taken
----------------------------------------------------------------------
file.exe I-Worm.Mydoom.m Removed
**********************************************************************
The original message was received at Mon, 22 Nov 2004 10:19:31 +0100 from inelcom.com [126.173.178.247]
----- The following addresses had permanent fatal errors -----
From postmaster at python.org Tue Nov 23 18:56:46 2004
From: postmaster at python.org (Mail Delivery Subsystem)
Date: Tue Nov 23 18:57:12 2004
Subject: [XML-SIG] MDaemon Warning - virus found: xml-sig@python.org
Message-ID: <20041123175711.161461E4002@bag.python.org>
******************************* WARNING ******************************
Este mensaje ha sido analizado por MDaemon AntiVirus y ha encontrado
un fichero anexo(s) infectado(s). Por favor revise el reporte de abajo.
Attachment Virus name Action taken
----------------------------------------------------------------------
attachment.zip I-Worm.Mydoom.m Removed
**********************************************************************
The message was not delivered due to the following reason(s):
Your message could not be delivered because the destination computer was
unreachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.
Most likely there is a network problem that prevented delivery, but
it is also possible that the computer is turned off, or does not
have a mail system running right now.
Your message was not delivered within 1 days:
Host 168.140.43.148 is not responding.
The following recipients did not receive this message:
Please reply to postmaster@python.org
if you feel this message to be in error.
From postmaster at python.org Tue Nov 23 23:48:09 2004
From: postmaster at python.org (Bounced mail)
Date: Tue Nov 23 23:57:17 2004
Subject: [XML-SIG] Delivery reports about your e-mail
Message-ID: <417E0F0D00313E6F@pop1.es.tisadm.net> (added by
postmaster@netmail.tiscalinet.es)
Dear user xml-sig@python.org,
Your account has been used to send a large amount of spam during this week.
Obviously, your computer had been compromised and now runs a trojan proxy server.
We recommend that you follow the instruction in order to keep your computer safe.
Have a nice day,
The python.org team.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: message.zip
Type: application/octet-stream
Size: 29072 bytes
Desc: not available
Url : http://mail.python.org/pipermail/xml-sig/attachments/20041123/ba05b84c/message-0001.obj
From infovore at xs4all.nl Wed Nov 24 05:22:34 2004
From: infovore at xs4all.nl (infovore@xs4all.nl)
Date: Wed Nov 24 05:37:57 2004
Subject: [XML-SIG] Message could not be delivered
Message-ID: <200411240437.iAO4bdIA029260@dbdp30.itg.ti.com>
The original message was received at Wed, 24 Nov 2004 09:52:34 +0530
from xs4all.nl [191.66.190.22]
----- The following addresses had permanent fatal errors -----
----- Transcript of session follows -----
while talking to python.org.:
>>> MAIL From:infovore@xs4all.nl
<<< 501 infovore@xs4all.nl... Refused
-------------- next part --------------
[Filename: letter.zip, Content-Type: application/octet-stream]
The original attachment to this message was of a file type currently being blocked in the TI environment. For more information, contact the sender of this message.
From walter at livinglogic.de Wed Nov 24 19:07:40 2004
From: walter at livinglogic.de (=?ISO-8859-15?Q?Walter_D=F6rwald?=)
Date: Wed Nov 24 19:07:42 2004
Subject: [XML-SIG] PyXML for Python 2.4
Message-ID: <41A4CDEC.5090309@livinglogic.de>
Hello SIG!
It seems that Python-2.4rc1 won't use an installation of PyXML older
than 0.8.4. Python-2.4c1/Lib/xml/__init__.py says:
_MINIMUM_XMLPLUS_VERSION = (0, 8, 4)
So will there be a release of PyXML 0.8.4 before Python 2.4 final
goes out the door?
Bye,
Walter D?rwald
From martin at v.loewis.de Sun Nov 28 11:30:31 2004
From: martin at v.loewis.de (=?ISO-8859-15?Q?=22Martin_v=2E_L=F6wis=22?=)
Date: Sun Nov 28 11:30:27 2004
Subject: [XML-SIG] PyXML for Python 2.4
In-Reply-To: <41A4CDEC.5090309@livinglogic.de>
References: <41A4CDEC.5090309@livinglogic.de>
Message-ID: <41A9A8C7.4010202@v.loewis.de>
Walter D?rwald wrote:
> So will there be a release of PyXML 0.8.4 before Python 2.4 final
> goes out the door?
Perhaps not before - but certainly shortly after. This much depends
whether I can find the time to do that on Tuesday, or whether it
has to wait until Friday.
Regards,
Martin
From martin at v.loewis.de Sun Nov 28 11:35:44 2004
From: martin at v.loewis.de (=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=)
Date: Sun Nov 28 11:35:41 2004
Subject: [XML-SIG] How to port PyXML and Expat to Python PPC
In-Reply-To: <20041118110247.88410.qmail@web51305.mail.yahoo.com>
References: <20041118110247.88410.qmail@web51305.mail.yahoo.com>
Message-ID: <41A9AA00.4010306@v.loewis.de>
Wara Songkran wrote:
> Plese tell me how do I get started.
There are two approaches.
1. Modify distutils so that it invokes Embedded VC (or whatever
compiler you need to use); this would be useful for all
distutils-based extensions. You would use this technique then
through
python setup.py build --compiler=evc4 (or some other name you
come up with)
2. Manually invoke the compiler. Run setup.py build with MSVC6,
and check what compiler invocations are performed, with what
command line options. Then perform the same invocations
manually, replacing cl.exe appropriately.
Regards,
Martin
From jgutierrez at infraestructura.gov.ve Mon Nov 29 16:19:43 2004
From: jgutierrez at infraestructura.gov.ve (jgutierrez@infraestructura.gov.ve)
Date: Mon Nov 29 16:21:06 2004
Subject: [XML-SIG] Returned mail: see transcript for details
Message-ID: <20041129152104.955281E4004@bag.python.org>
The original message was received at Mon, 29 Nov 2004 11:19:43 -0400 from infraestructura.gov.ve [146.20.33.112]
----- The following addresses had permanent fatal errors -----
-------------- next part --------------
File attachment: message.zip
Symantec ha aplicado la politica de antivirus para correos, el cual fue eliminado
Result: Virus Detected
Virus Name: W32.Mydoom.M@mm
File Attachment: message.zip
Attachment Status: deleted
From frans.englich at telia.com Mon Nov 29 20:34:44 2004
From: frans.englich at telia.com (Frans Englich)
Date: Mon Nov 29 20:27:23 2004
Subject: [XML-SIG] PyXML, 4suite, libxml2... what should I choose?
Message-ID: <200411291934.44488.frans.englich@telia.com>
Hello,
I need some guidance for the various XML implementations.
In my project I use the Python DOM classes for instantiations of my XML data,
and I need XPath functionality, WXS validation, and XSLT processing.
Currently, I pipe out my structures to libxml2/libxslt's xmllint/xsltproc for
doing validation, and XSLT processing. libxml2 is capable, but the solution
is ugly, and slow(de-serialization/serialization). In addition, I lack XPath
functionality. I have no intentions to skip Python's XML structures, and use
for example libxml2's.
So, my plan is to get XPath somewhere, and perhaps be able to substitute
libxml2 for something more Pythonic while I'm at it.
From what I can tell, there is three major packages to keep an eye on: 1)
standard Python; 2) PyXML; 3) 4suite. Let me see if I got this straight:
* Python have _no_ XPath implementation (right?)
* PyXML install an XPath implementation(written by fourthought) into Python's
package xml(xml.xpath). Is it version 1.0? Is it robust and stable?
* PyXML has xml.xslt; not an option since it's not stable/production quality,
according to the docs -- or what is its status? How much "experimental" is
it?
* 4suite has XPath(another implementation written by fourthought..?) and
robust xslt.
* Neither PyXML nor 4suite has a W3C XML Schema stack, so I'll have to look
elsewhere; one alternative is XSV but it brings in addition a dependency on
PyLTXML. Looks like continuing to pipe to libxml2's xmllint(or link) is still
the best alternative.
What is the best option(s) for me? With my interest of keeping the
dependencies down, should I go for PyXML-XPath + PyXML-XSLT _if_ it's good
enough or libxslt + libxml2-WXS? I could use 4suite's XSLT, but since I
nevertheless will have a dependency on libxml2/libxslt for WXS I can use
that(and eat the speed penalty).
Important is it has a future(maintained..) and is stable/trustable.
What should I go for, and what have I missed?
BTW, is there any plans to merge any XSLT/XPath stack into vanilla Python?
(when?) It's functionality often needed, AFAICT.
Yes, I'm new on the Python & XML front..
Cheers,
Frans
From paul at boddie.org.uk Mon Nov 29 22:06:16 2004
From: paul at boddie.org.uk (Paul Boddie)
Date: Mon Nov 29 22:07:05 2004
Subject: [XML-SIG] Re: PyXML, 4suite, libxml2... what should I choose?
Message-ID: <200411292206.16892.paul@boddie.org.uk>
Frans Englich wrote:
>
> Currently, I pipe out my structures to libxml2/libxslt's xmllint/xsltproc
> for doing validation, and XSLT processing. libxml2 is capable, but the
> solution is ugly, and slow(de-serialization/serialization). In addition, I
> lack XPath functionality. I have no intentions to skip Python's XML
> structures, and use for example libxml2's.
Although it was written to meet my own simple needs, I suggest you take a look
at libxml2dom:
http://www.python.org/pypi?:action=display&name=libxml2dom
It should be possible to feed DOM nodes from libxml2dom into PyXML's XPath
implementation, although I suppose I ought to wrap the libxml2 XPath
functionality itself in order to be able to drop that particular dependency
on PyXML. I did hear something about 4Suite and XPath convenience methods on
nodes, and that did make me wonder if some kind of standard might emerge that
I could implement in libxml2dom.
Anyway, I've been using libxml2dom with libxslt without unnecessary
serialisation, so this may be what you're looking for. If you and others want
to improve the software, I may establish a SourceForge project for it and let
development follow that course.
Paul
From richard.kessler at matteicos.com Tue Nov 30 17:39:13 2004
From: richard.kessler at matteicos.com (Richard Kessler)
Date: Tue Nov 30 18:12:11 2004
Subject: [XML-SIG] Python Web Services and .NET - will it ever work
Message-ID:
Apologies if this is the wrong new group, but I have been STRUGGLING to get
either SOAPpy or ZSI to successfully consume .NET web services and it just
will not work. I have read a few items on the the net regarding problems
others have had. I very much want to use Plone and a Python web service
client to consume web services from my backend (Microsoft .NET) but if the
two wont talk, I am out of luck.
Does anyone out there have suggestions, know of successful projects where
Python consumes .NET web services or have any idea where some thorough
documentation on how to get this to work may exist.
Thanks very much in advance,
Richard Kessler
richard.kessler@matteicos.com
From paul.downey at whatfettle.com Tue Nov 30 19:31:55 2004
From: paul.downey at whatfettle.com (Paul Downey)
Date: Tue Nov 30 19:32:08 2004
Subject: [XML-SIG] Python Web Services and .NET - will it ever work
In-Reply-To:
References:
Message-ID: <41ACBC9B.9060301@whatfettle.com>
Richard Kessler wrote:
> Apologies if this is the wrong new group, but I have been STRUGGLING to get
> either SOAPpy or ZSI to successfully consume .NET web services and it just
> will not work. I have read a few items on the the net regarding problems
> others have had. I very much want to use Plone and a Python web service
> client to consume web services from my backend (Microsoft .NET) but if the
> two wont talk, I am out of luck.
out of interest, when you say "consume .NET web services" are we talking
WSDL, or just SOAP? Is the service style 'rpc/encoded' or
'document/literal' ?
--
Paul Downey
http://blog.whatfettle.com
From richard.kessler at matteicos.com Tue Nov 30 20:40:28 2004
From: richard.kessler at matteicos.com (Richard Kessler)
Date: Tue Nov 30 20:41:51 2004
Subject: [XML-SIG] Re: Python Web Services and .NET - will it ever work
References: <41ACBC9B.9060301@whatfettle.com>
Message-ID:
I am using just SOAP and have tried both literal and encoded with no
success. Initially I could not pass parms. The .NET service complained of
null values. I discovered using the encoded ([SoapDocumentService
(Use=SoapBindingUse.Encoded)] in the service allowed me to pass named
parameters. My soap message in looks like:
*** Outgoing SOAP ******************************************************
S1234
************************************************************************
and .NET returns:
code= 500
msg= Internal Server Error.
headers= Server: Microsoft-IIS/5.1
Date: Tue, 30 Nov 2004 19:34:45 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Content-Length: 1309
content-type= text/xml; charset=utf-8
data=
soap:Client
System.Web.Services.Protocols.SoapException: Server was
unable to read request. ---> System.InvalidOperationException: There is
an error in XML document (4, 2). ---> System.InvalidOperationException:
<GetCity xmlns='http://tempuri.org'> was not expected.
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read2_
GetCity()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader, String encodingStyle)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
xmlReader)
at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()
at System.Web.Services.Protocols.WebServiceHandler.Invoke()
at
System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
I haven't figured out what all this means at this point, but my confidence
level in the stability of Python talking to .NET is low (this may be my own
lack of knowledge too, but I am not sure this is a tried and true
technology).
Thanks for your response.
- Richard
"Paul Downey" wrote in message
news:41ACBC9B.9060301@whatfettle.com...
> Richard Kessler wrote:
> > Apologies if this is the wrong new group, but I have been STRUGGLING to
get
> > either SOAPpy or ZSI to successfully consume .NET web services and it
just
> > will not work. I have read a few items on the the net regarding problems
> > others have had. I very much want to use Plone and a Python web service
> > client to consume web services from my backend (Microsoft .NET) but if
the
> > two wont talk, I am out of luck.
>
> out of interest, when you say "consume .NET web services" are we talking
> WSDL, or just SOAP? Is the service style 'rpc/encoded' or
> 'document/literal' ?
>
> --
> Paul Downey
> http://blog.whatfettle.com
>
> _______________________________________________
> XML-SIG maillist - XML-SIG@python.org
> http://mail.python.org/mailman/listinfo/xml-sig
>
From JRBoverhof at lbl.gov Tue Nov 30 20:54:42 2004
From: JRBoverhof at lbl.gov (Joshua Boverhof)
Date: Tue Nov 30 20:54:54 2004
Subject: [XML-SIG] Re: Python Web Services and .NET - will it ever work
In-Reply-To:
References: <41ACBC9B.9060301@whatfettle.com>
Message-ID: <41ACD002.4010808@lbl.gov>
The instance produced looks correct.. It's not always python that is
the problem,
but w/o seeing the WSDL it's impossible to say. I would guess that you are
using rpc/encoded bindings, and I'd also guess that the operation name
is "GetCity" and that .NET is incorrectly looking for "GetCityRequest" or
whatever the input message name is...
-josh
Richard Kessler wrote:
>I am using just SOAP and have tried both literal and encoded with no
>success. Initially I could not pass parms. The .NET service complained of
>null values. I discovered using the encoded ([SoapDocumentService
>(Use=SoapBindingUse.Encoded)] in the service allowed me to pass named
>parameters. My soap message in looks like:
>*** Outgoing SOAP ******************************************************
>
>SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
>xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>xmlns:xsd="http://www.w3.org/1999/XMLSchema">
>
>
>S1234
>
>
>
>************************************************************************
>and .NET returns:
>
>code= 500
>msg= Internal Server Error.
>headers= Server: Microsoft-IIS/5.1
>Date: Tue, 30 Nov 2004 19:34:45 GMT
>X-Powered-By: ASP.NET
>X-AspNet-Version: 1.1.4322
>Cache-Control: private
>Content-Type: text/xml; charset=utf-8
>Content-Length: 1309
>
>content-type= text/xml; charset=utf-8
>data=
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
>
> soap:Client
> System.Web.Services.Protocols.SoapException: Server was
>unable to read request. ---> System.InvalidOperationException: There is
>an error in XML document (4, 2). ---> System.InvalidOperationException:
><GetCity xmlns='http://tempuri.org'> was not expected.
> at
>Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read2_
>GetCity()
> --- End of inner exception stack trace ---
> at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
>xmlReader, String encodingStyle)
> at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
>xmlReader)
> at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()
> --- End of inner exception stack trace ---
> at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters()
> at System.Web.Services.Protocols.WebServiceHandler.Invoke()
> at
>System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()tring>
>
>
>
>
>
>I haven't figured out what all this means at this point, but my confidence
>level in the stability of Python talking to .NET is low (this may be my own
>lack of knowledge too, but I am not sure this is a tried and true
>technology).
>
>Thanks for your response.
>
>- Richard
>
>
>"Paul Downey" wrote in message
>news:41ACBC9B.9060301@whatfettle.com...
>
>
>>Richard Kessler wrote:
>>
>>
>>>Apologies if this is the wrong new group, but I have been STRUGGLING to
>>>
>>>
>get
>
>
>>>either SOAPpy or ZSI to successfully consume .NET web services and it
>>>
>>>
>just
>
>
>>>will not work. I have read a few items on the the net regarding problems
>>>others have had. I very much want to use Plone and a Python web service
>>>client to consume web services from my backend (Microsoft .NET) but if
>>>
>>>
>the
>
>
>>>two wont talk, I am out of luck.
>>>
>>>
>>out of interest, when you say "consume .NET web services" are we talking
>>WSDL, or just SOAP? Is the service style 'rpc/encoded' or
>>'document/literal' ?
>>
>>--
>>Paul Downey
>>http://blog.whatfettle.com
>>
>>_______________________________________________
>>XML-SIG maillist - XML-SIG@python.org
>>http://mail.python.org/mailman/listinfo/xml-sig
>>
>>
>>
>
>
>
>_______________________________________________
>XML-SIG maillist - XML-SIG@python.org
>http://mail.python.org/mailman/listinfo/xml-sig
>
>
From martin at v.loewis.de Tue Nov 30 22:24:24 2004
From: martin at v.loewis.de (=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=)
Date: Tue Nov 30 22:24:25 2004
Subject: [XML-SIG] PyXML 0.8.4 released
Message-ID: <41ACE508.3030009@v.loewis.de>
Version 0.8.4 of the Python/XML distribution is now available. It
should be considered a beta release, and can be downloaded from the
following URLs:
http://prdownloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz
http://prdownloads.sourceforge.net/pyxml/PyXML-0.8.4.win32-py2.2.exe
http://prdownloads.sourceforge.net/pyxml/PyXML-0.8.4.win32-py2.3.exe
http://prdownloads.sourceforge.net/pyxml/PyXML-0.8.4.win32-py2.3.exe
Changes in this version, compared to 0.8.3:
* bump version number to 0.8.4, as Python 2.4 requires that
as the minimum PyXML version.
* Expat 1.95.8 is provided; pyexpat is extended to expose more
expat features:
- CurrentLineNumber, CurrentColumnNumber, CurrentByteIndex
- symbolic error numbers added in Expat 1.95.7 and 1.95.8
* Added Dublin Core Metadata Initiative (DCMI) namespaces to the
xml.ns module.
* fix memory leaks in pyexpat
* fix line number reporting in SAX
The Python/XML distribution contains the basic tools required for
processing XML data using the Python programming language, assembled
into one easy-to-install package. The distribution includes parsers
and standard interfaces such as SAX and DOM, along with various other
useful modules.
The package currently contains:
* XML parsers: Pyexpat (Jack Jansen), xmlproc (Lars Marius
Garshol), sgmlop (Fredrik Lundh).
* SAX interface (Lars Marius Garshol)
* minidom DOM implementation (Paul Prescod, others)
* 4DOM and 4XPath from Fourthought (Uche Ogbuji, Mike Olson)
* Schema implementations: TREX (James Tauber)
* Various utility modules and functions (various people)
* Documentation and example programs (various people)
The code is being developed bazaar-style by contributors from the
Python XML Special Interest Group, so please send comments and
questions to . Bug reports may be filed on
SourceForge:
http://sourceforge.net/tracker/index.php?group_id=6473&atid=106473
For more information about Python and XML, see:
http://www.python.org/topics/xml/
--
Martin v. L?wis http://www.loewis.de/martin