From bookstack at gmail.com Wed May 4 09:03:38 2005 From: bookstack at gmail.com (Kun Xi) Date: Wed, 04 May 2005 03:03:38 -0400 Subject: [XML-SIG] How to convert my data in database to XML In-Reply-To: <1099879831.3372.41330.camel@borgia> References: <20041102172141.71361.qmail@web53705.mail.yahoo.com> <1099879831.3372.41330.camel@borgia> Message-ID: Uche Ogbuji wrote: > 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. > Hello. I have the same question: The data is store in Sql database, but the database schema is determined in the runtime. I need to generate the xml file without knowing the table structure, sound insane? Is there any tool, framework that could read the configuration file and serialize the xml file from/to the database ? I don't need the o/r mapping, I just need a filter between the xml and database. Thanks. From Uche.Ogbuji at fourthought.com Thu May 5 23:09:07 2005 From: Uche.Ogbuji at fourthought.com (Uche Ogbuji) Date: Thu, 05 May 2005 15:09:07 -0600 Subject: [XML-SIG] How to convert my data in database to XML In-Reply-To: References: <20041102172141.71361.qmail@web53705.mail.yahoo.com> <1099879831.3372.41330.camel@borgia> Message-ID: <1115327347.13308.125.camel@borgia> On Wed, 2005-05-04 at 03:03 -0400, Kun Xi wrote: > Hello. I have the same question: > The data is store in Sql database, but the database schema is determined > in the runtime. I need to generate the xml file without knowing the > table structure, sound insane? Is there any tool, framework that could > read the configuration file and serialize the xml file from/to the > database ? > > I don't need the o/r mapping, I just need a filter between the xml and > database. And by "configuration file", I assume you mean SQL DDL. This is the sort of thing that most DBMS vendors sell as features or add-ons. Many OSS projects have such tools as well. I don't know of anything general purpose in Python for this. -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://fourthought.com http://copia.ogbuji.net http://4Suite.org Use CSS to display XML, part 2 - http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.html XML Output with 4Suite & Amara - http://www.xml.com/pub/a/2005/04/20/py-xml.html Use XSLT to prepare XML for import into OpenOffice Calc - http://www.ibm.com/developerworks/xml/library/x-oocalc/ Schema standardization for top-down semantic transparency - http://www-128.ibm.com/developerworks/xml/library/x-think31.html From python at venix.com Thu May 5 23:59:28 2005 From: python at venix.com (Lloyd Kvam) Date: Thu, 05 May 2005 17:59:28 -0400 Subject: [XML-SIG] How to convert my data in database to XML In-Reply-To: <1115327347.13308.125.camel@borgia> References: <20041102172141.71361.qmail@web53705.mail.yahoo.com> <1099879831.3372.41330.camel@borgia> <1115327347.13308.125.camel@borgia> Message-ID: <1115330368.6412.148.camel@laptop.venix.com> Your SQL database will support SQL commands like DESCRIBE TABLE. For MySQL I have used: cursor.execute( 'SHOW COLUMNS FROM %s' % tablename) for row in cursor.fetchall(): fname = row[0] # my live code also saved the type info to build a dictionary of field names and types for a table to control processing. I presume your XML is supposed to look something like: value_1 value_2 ... ... If that description fits what you are trying to do, then you should not have too much difficulty coding up the pieces. This glosses over difficulties with XML character rules in tags and elements, encoding binary data, etc. On Thu, 2005-05-05 at 15:09 -0600, Uche Ogbuji wrote: > On Wed, 2005-05-04 at 03:03 -0400, Kun Xi wrote: > > Hello. I have the same question: > > The data is store in Sql database, but the database schema is determined > > in the runtime. I need to generate the xml file without knowing the > > table structure, sound insane? Is there any tool, framework that could > > read the configuration file and serialize the xml file from/to the > > database ? > > > > I don't need the o/r mapping, I just need a filter between the xml and > > database. > > And by "configuration file", I assume you mean SQL DDL. > > This is the sort of thing that most DBMS vendors sell as features or > add-ons. Many OSS projects have such tools as well. I don't know of > anything general purpose in Python for this. > -- Lloyd Kvam Venix Corp From bookstack at gmail.com Fri May 6 06:24:58 2005 From: bookstack at gmail.com (Book Stack) Date: Fri, 06 May 2005 00:24:58 -0400 Subject: [XML-SIG] How to convert my data in database to XML In-Reply-To: <1115330368.6412.148.camel@laptop.venix.com> References: <20041102172141.71361.qmail@web53705.mail.yahoo.com> <1099879831.3372.41330.camel@borgia> <1115327347.13308.125.camel@borgia> <1115330368.6412.148.camel@laptop.venix.com> Message-ID: <427AF19A.4060402@gmail.com> That sounds very interesting. Let me make make myself more clear. I need one middle layer between the database and presentation. Suppose the filter from/to between XML and dataset is xmlSerializer. The DDL and XML schema is determined in the runtime, xmlSerializer is feed with this information with xmlSerializer.conf, i.e a xml, .conf whatever, xmlSerializer should provide the following information: a. How to execute a query. We could use stored procedure, view or other mechanism to easy this process. b. How to map the dataset to the xml file c. How to map xml to dataset. This would be kind complicated if involving multi-table query. I would like dig into the sqlobject for more inspiration. Thanks. Lloyd Kvam wrote: >Your SQL database will support SQL commands like DESCRIBE TABLE. For >MySQL I have used: > cursor.execute( 'SHOW COLUMNS FROM %s' % tablename) > for row in cursor.fetchall(): > fname = row[0] # my live code also saved the type info > >to build a dictionary of field names and types for a table to control >processing. > >I presume your XML is supposed to look something like: > > > >value_1 >value_2 >... > >... > > >If that description fits what you are trying to do, then you should not >have too much difficulty coding up the pieces. This glosses over >difficulties with XML character rules in tags and elements, encoding >binary data, etc. > >On Thu, 2005-05-05 at 15:09 -0600, Uche Ogbuji wrote: > > >>On Wed, 2005-05-04 at 03:03 -0400, Kun Xi wrote: >> >> >>>Hello. I have the same question: >>>The data is store in Sql database, but the database schema is determined >>>in the runtime. I need to generate the xml file without knowing the >>>table structure, sound insane? Is there any tool, framework that could >>>read the configuration file and serialize the xml file from/to the >>>database ? >>> >>>I don't need the o/r mapping, I just need a filter between the xml and >>>database. >>> >>> >>And by "configuration file", I assume you mean SQL DDL. >> >>This is the sort of thing that most DBMS vendors sell as features or >>add-ons. Many OSS projects have such tools as well. I don't know of >>anything general purpose in Python for this. >> >> >> > > > From jacob at e-2dj6wfk4umdpoap.stats.esomniture.com Sun May 8 18:48:04 2005 From: jacob at e-2dj6wfk4umdpoap.stats.esomniture.com (jacob@e-2dj6wfk4umdpoap.stats.esomniture.com) Date: Sun, 08 May 2005 12:48:04 -0400 Subject: [XML-SIG] Report Message-ID: <0IG600CD1L5GAE@mta4.srv.hcvlny.cv.net> The original message was received at Sun, 8 May 2005 12:48:04 -0400 from e-2dj6wfk4umdpoap.stats.esomniture.com [60.13.12.99] ----- The following addresses had permanent fatal errors ----- From tusharpatil1982 at rediffmail.com Tue May 10 09:19:27 2005 From: tusharpatil1982 at rediffmail.com (tushar liladhar patil) Date: 10 May 2005 07:19:27 -0000 Subject: [XML-SIG] How to convert xml files to pdf in python? Message-ID: <20050510071927.3399.qmail@mailweb34.rediffmail.com> hi I have xml files with me and i want my application to generate pdfs thro' xml files. my entire application is in python so i want it in python only. i knows the tools in java. but want the tools and help from python and python users. Anyone who knows about this please reply me. it's urgent!!!, We are basically a NGO and recently working on Computer Based Training(CBT) software. Thanking you, Tushar... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/xml-sig/attachments/20050510/49b951d2/attachment.html From Uche.Ogbuji at fourthought.com Tue May 10 13:33:55 2005 From: Uche.Ogbuji at fourthought.com (Uche Ogbuji) Date: Tue, 10 May 2005 05:33:55 -0600 Subject: [XML-SIG] How to convert xml files to pdf in python? In-Reply-To: <20050510071927.3399.qmail@mailweb34.rediffmail.com> References: <20050510071927.3399.qmail@mailweb34.rediffmail.com> Message-ID: <1115724835.10721.12.camel@borgia> On Tue, 2005-05-10 at 07:19 +0000, tushar liladhar patil wrote: > > hi > I have xml files with me and i want my application to generate pdfs > thro' xml files. my entire application is in python so i want it in > python only. i knows the tools in java. but want the tools and help > from python and python users. > Anyone who knows about this please reply me. it's urgent!!!, > > We are basically a NGO and recently working on Computer Based > Training(CBT) software. See ReportLab: http://www.reportlab.org/ -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://fourthought.com http://copia.ogbuji.net http://4Suite.org Use CSS to display XML, part 2 - http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.html XML Output with 4Suite & Amara - http://www.xml.com/pub/a/2005/04/20/py-xml.html Use XSLT to prepare XML for import into OpenOffice Calc - http://www.ibm.com/developerworks/xml/library/x-oocalc/ Schema standardization for top-down semantic transparency - http://www-128.ibm.com/developerworks/xml/library/x-think31.html From shawn.robb at advdata.com.au Wed May 11 03:25:53 2005 From: shawn.robb at advdata.com.au (Shawn Robb) Date: Wed, 11 May 2005 11:25:53 +1000 Subject: [XML-SIG] PyXML and XPath : simple Path expression seems to crash with Message-ID: Hi There, I know very little about python or xpath (I'm just learning) BUT I did run into the same error and in my case I believe it has something to do with a conflict between 2 installations of python on my machine. So it may be a path thing or a package thing - or something related. It runs fine with the installation from python.org 2.3.5 but I get the error with the ActiveState version, based on python 2.3.5 It may have something to do with a package I've neglected to install or something. Sorry this info is not very specific, but I hope it may help. I'm still trying to sort out just what the problem is myself. Good Luck, Shawn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/xml-sig/attachments/20050511/ce6343f9/attachment.html From shawn.robb at advdata.com.au Wed May 11 03:27:54 2005 From: shawn.robb at advdata.com.au (Shawn Robb) Date: Wed, 11 May 2005 11:27:54 +1000 Subject: [XML-SIG] PyXML and XPath : simple Path expression seems to crash with Message-ID: Here is a copy of the error message I get, in case that helps. Traceback (most recent call last): File "test\SRtestXFormUtil.py", line 20, in testMakeReadOnly xform_util.makeReadOnly("", doc) File "C:\DWServer\DW30400DEMO\lib\python\Products\DWWFEng\xform_util.py", line 462, in __call__ self.memo[args] = self.fn(*args) File "C:\DWServer\DW30400DEMO\lib\python\Products\DWWFEng\xform_util.py", line 162, in makeReadOnly bindNodes = xml.xpath.Evaluate(xpath,doc,ctx) File "C:\Python23\Lib\site-packages\_xmlplus\xpath\__init__.py", line 70, in E valuate retval = parser.new().parse(expr).evaluate(con) File "C:\Python23\Lib\site-packages\_xmlplus\xpath\ParsedAbbreviatedAbsoluteL o cationPath.py", line 44, in evaluate sub_rt.extend(self._rel.select(context)) File "C:\Python23\Lib\site-packages\_xmlplus\xpath\ParsedRelativeLocationPath . py", line 23, in evaluate raise Exception("Expected node set from relative expression. Got %s"%str(rt )) Exception: Expected node set from relative expression. Got () -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/xml-sig/attachments/20050511/3ca4acc3/attachment.htm From ja at nuxeo.com Wed May 11 11:29:06 2005 From: ja at nuxeo.com (Julien Anguenot) Date: Wed, 11 May 2005 11:29:06 +0200 Subject: [XML-SIG] PyXML and XPath : simple Path expression seems to crash with In-Reply-To: References: Message-ID: <4281D062.6020704@nuxeo.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, You may want to try out lxml if you wanna use xpath (http://codespeak.net/lxml/xpath.html) Cheers, J. Shawn Robb wrote: > Hi There, > > > > I know very little about python or xpath (I?m just learning) BUT > > > > I did run into the same error and in my case I believe it has something > to do with a conflict between 2 installations of python on my machine. > So it may be a path thing or a package thing ? or something related. > > > > It runs fine with the installation from python.org 2.3.5 but I get the > error with the ActiveState version, based on python 2.3.5 > > > > It may have something to do with a package I?ve neglected to install or > something. > > > > Sorry this info is not very specific, but I hope it may help. I?m still > trying to sort out just what the problem is myself. > > > > Good Luck, > > > > Shawn > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > XML-SIG maillist - XML-SIG at python.org > http://mail.python.org/mailman/listinfo/xml-sig - -- Julien Anguenot | Nuxeo R&D (Paris, France) CPS Plateform : http://www.cps-project.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFCgdBiGhoG8MxZ/pIRAmc9AJ9/zWlXEjjOHAYOQwyOW5relPJPoACeLYHi zRsVgoXjzcnrRqHyVZKO5+I= =qXqw -----END PGP SIGNATURE----- From Uche.Ogbuji at fourthought.com Wed May 11 23:29:56 2005 From: Uche.Ogbuji at fourthought.com (Uche Ogbuji) Date: Wed, 11 May 2005 15:29:56 -0600 Subject: [XML-SIG] PyXML and XPath : simple Path expression seems to crash with In-Reply-To: References: Message-ID: <1115846997.23735.21.camel@borgia> On Wed, 2005-05-11 at 11:25 +1000, Shawn Robb wrote: > Hi There, > I know very little about python or xpath (I?m just learning) BUT > > I did run into the same error and in my case I believe it has > something to do with a conflict between 2 installations of python on > my machine. So it may be a path thing or a package thing ? or > something related. > It runs fine with the installation from python.org 2.3.5 but I get the > error with the ActiveState version, based on python 2.3.5 > > It may have something to do with a package I?ve neglected to install > or something. The error message you pointed out has been reported in PyXML. I'm not sure it is a version clash. Not to join the chorus of folks suggesting you install other software, but I shall :-). The XPath in PyXML is a *very* old version of the one in 4Suite. I suggest you install the latest 4Suite: http://4suite.org -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://fourthought.com http://copia.ogbuji.net http://4Suite.org Use CSS to display XML, part 2 - http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.html XML Output with 4Suite & Amara - http://www.xml.com/pub/a/2005/04/20/py-xml.html Use XSLT to prepare XML for import into OpenOffice Calc - http://www.ibm.com/developerworks/xml/library/x-oocalc/ Schema standardization for top-down semantic transparency - http://www-128.ibm.com/developerworks/xml/library/x-think31.html From jrhoades at us.ibm.com Sat May 14 01:44:06 2005 From: jrhoades at us.ibm.com (Joshua M Rhoades) Date: Fri, 13 May 2005 16:44:06 -0700 Subject: [XML-SIG] Has anyone frozen scripts that use pyxml with freeze.py on unix ? Message-ID: Has anyone frozen scripts that use pyxml with freeze.py on unix ? I used py2exe for windows but am having difficulty with freeze.py on AIX. I'm using python 2.4.1 and pyxml 0.8.4. The piece of code currently causing problems is within xpath. The problem I am having is with it loading shared object files at run time via a "from" import statement. In particular, xml/utils/boolean.so. Traceback (most recent call last): File "HelloWorld.py", line 53, in ? File "/usr/opt/lib/python2.4/xml/xpath/__init__.py", line 105, in ? import Context File "/usr/opt/lib/python2.4/xml/xpath/Context.py", line 15, in ? import CoreFunctions File "/usr/opt/lib/python2.4/xml/xpath/CoreFunctions.py", line 20, in ? from xml.xpath import Util, Conversions File "/usr/opt/lib/python2.4/xml/xpath/Conversions.py", line 22, in ? from xml.utils import boolean ImportError: cannot import name boolean Previous to this hurdle I had a problem with loading cStringIO.so File "/usr/opt/lib/python2.4/xml/xpath/CoreFunctions.py", line 14, in ? import string, cStringIO ImportError: No module named cStringIO I discovered cStringIO was a shared object file so just put it and other *.so into my current dir. Then I hit the boolean.so thing. I copied boolean.so into my current dir but still get the ImportError. The problem is that it wants to import "from xml.utils". I tried creating a xml/utils/boolean.so under the current dir to see what happened but no luck. I don't want to mess with modifying PyXML code to get it to work. Is there an option to build PyXML without shared objects? Has anyone frozen scripts that use pyxml with freeze.py on unix ? Thanks. Joshua M. Rhoades -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/xml-sig/attachments/20050513/282d023e/attachment.html From dieter at handshake.de Sat May 14 21:29:30 2005 From: dieter at handshake.de (Dieter Maurer) Date: Sat, 14 May 2005 21:29:30 +0200 Subject: [XML-SIG] Has anyone frozen scripts that use pyxml with freeze.py on unix ? In-Reply-To: References: Message-ID: <17030.20890.708145.413109@gargle.gargle.HOWL> Joshua M Rhoades wrote at 2005-5-13 16:44 -0700: >Has anyone frozen scripts that use pyxml with freeze.py on unix ? I used >py2exe for windows but am having difficulty with freeze.py on AIX. >I'm using python 2.4.1 and pyxml 0.8.4. >The piece of code currently causing problems is within xpath. >The problem I am having is with it loading shared object files at run time >via a "from" import statement. In particular, xml/utils/boolean.so. I solved a similar problem for Zope with a "meta_path" import hook. In my case, a shared object for a module identified by "" as the filename ".so". I.e. "xml.utils.boolean" would be in file "xml.utils.boolean.so". Then I use the followining code to define and install the "meta_path" hook loading such shared objects. import sys, imp from os import environ from os.path import sep, pathsep from glob import glob # note some imports may be missing if sys.platform == 'win32': _SHARED_OBJECT_DESCRIPTION = ('.pyd', 'rb', 3) else: # ATT: not sure whether Win98 uses "win32" as platform _SHARED_OBJECT_DESCRIPTION = ('.so', 'rb', 3) _SHARED_OBJECT_SUFFIX = _SHARED_OBJECT_DESCRIPTION[0] PATH = environ.get('PYPACKAGE_PATH') or None if PATH is not None: PATH = PATH.split(pathsep) class _SharedObjectImporter: '''singleton to load shared objects for use as a 'meta_hook'.''' def __init__(self, path): map = {} cpath = path[:]; cpath.reverse() for p in cpath: prefix = p and p + sep or '' for fn in glob(prefix + '*' + _SHARED_OBJECT_SUFFIX): modname = fn[len(prefix):-len(_SHARED_OBJECT_SUFFIX)] map[modname] = fn if modname.endswith('module'): map[modname[:-6]] = fn self._map = map def find_module(self, fullname, unused): if fullname in self._map: return self def load_module(self, fullname): return _load(fullname, self._map[fullname]) def _load(fullname, filename): if fullname in sys.modules: return sys.modules[fullname] # This whole mess is necessary because Python determines # the package context from the frame that called # "imp.load_module" rather than the full name! # ATT: we potentially leave a restricted environment! desc = _SHARED_OBJECT_DESCRIPTION load = imp.load_module if '.' in fullname: parent = fullname[:fullname.rindex('.')] __import__(parent) glbs = sys.modules[parent].__dict__ else: glbs = {'__builtins__' : __builtins__} exec 'load(fullname, None, filename, desc)' in glbs, locals() return sys.modules[fullname] if PATH: sys.meta_path.insert(0, _SharedObjectImporter(PATH)) -- Dieter From zubin at mail.utexas.edu Tue May 17 17:24:33 2005 From: zubin at mail.utexas.edu (Ben Kimball) Date: Tue, 17 May 2005 10:24:33 -0500 Subject: [XML-SIG] Installing PyXML 0.8.4 on Mac OS X 10.4 "Tiger" Message-ID: Hello! I apologize if I'm on the wrong list to discuss this, but I was wondering if anyone else had run into trouble installing PyXML on Mac OS X 10.4? I'm trying to get it installed so that my local MoinMoinWiki will publish an RSS feed for its RecentChanges page. When I download the 0.8.4 package and run `python setup.py build`, my machine works for a while, copies and compiles many things, but then stops short with this message: building '_xmlplus.parsers.pyexpat' extension gcc -Wl,-F. -Wl,-F. -bundle -undefined dynamic_lookup build/temp.darwin-8.0.0-Power_Macintosh-2.3/extensions/pyexpat.o build/temp.darwin-8.0.0-Power_Macintosh-2.3/extensions/expat/lib/xmlparse.o build/temp.darwin-8.0.0-Power_Macintosh-2.3/extensions/expat/lib/xmlrole.o build/temp.darwin-8.0.0-Power_Macintosh-2.3/extensions/expat/lib/xmltok.o -o build/lib.darwin-8.0.0-Power_Macintosh-2.3/_xmlplus/parsers/pyexpat.so -flat_namespace ld: warning unknown MACOSX_DEPLOYMENT_TARGET environment variable value: 10.4 ignored (using 10.1) ld: flag: -undefined dynamic_lookup can't be used with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1 error: command 'gcc' failed with exit status 1 Has anyone else seen this, or know what I can do about it? Thanks! Ben -- Ben Kimball Web Application Developer Office of Resource Development, UT Austin From aa-sender at listhub.w3.org Tue May 17 18:28:51 2005 From: aa-sender at listhub.w3.org (W3C List Manager) Date: Tue, 17 May 2005 16:28:51 +0000 Subject: [XML-SIG] IMPORTANT: your message to site-policy In-Reply-To: Message-ID: This is a response to a message apparently sent from your address to site-policy at w3.org: Subject: The Whore Lived Like a German From: xml-sig at python.org Date: Tue, 17 May 2005 09:52:48 GMT Your message has NOT been distributed to the list; before we distribute it, we need your permission to include your message in our Web archive of all messages distributed to this list. Please visit: http://www.w3.org/Mail/review?id=c6e95caca37b230b8bf6 and follow the simple procedure listed to give us permission to include your message in our Web archives. It should take less than one minute of your time, and only needs to be done once. If you do not give us this permission by Tue May 24 16:28:51 UTC 2005, your message will be deleted from our systems without being distributed to the list. Please do not reply to this message; for more information on this system, including information on how to provide feedback, please see: http://www.w3.org/2002/09/aa/ Note: W3C's mailing lists may not be used for unsolicited bulk email of any kind! -- W3C Postmaster, http://www.w3.org/Mail/ From aconrad.tlv at magic.fr Tue May 17 20:22:59 2005 From: aconrad.tlv at magic.fr (Alexandre CONRAD) Date: Tue, 17 May 2005 20:22:59 +0200 Subject: [XML-SIG] xml.dom won't traverse the whole XML tree Message-ID: <428A3683.9000307@magic.fr> Hello, I have a problem here traversing an XML file all the way through. Here is my script file (copy/paste in a file an execute it, it should work). ------------cut------------ import time import xml.dom.ext from xml.dom.ext.reader import Sax2 from xml.dom.NodeFilter import NodeFilter playlist = """ """ reader = Sax2.Reader() doc = reader.fromString(playlist) xml.dom.ext.StripXml(doc) walker = doc.createTreeWalker(doc.documentElement, NodeFilter.SHOW_ELEMENT, None, 0) while 1: print walker.currentNode.getAttribute("file") next = walker.nextNode() time.sleep(0.1) ------------cut------------ When you execute it, as you can see, it get's stuck in the 1st "videolist" element. It should normaly keep on going. And I can't see what I'm doing wrong... Any idea what's wrong ? Thanks in advance. Best regards, -- Alexandre CONRAD - TLV Research & Development tel : +33 1 30 80 55 05 fax : +33 1 30 80 55 06 6, rue de la plaine 78860 - SAINT NOM LA BRETECHE FRANCE From KRJackson at lbl.gov Wed May 18 03:36:04 2005 From: KRJackson at lbl.gov (Keith Jackson) Date: Tue, 17 May 2005 18:36:04 -0700 Subject: [XML-SIG] Installing PyXML 0.8.4 on Mac OS X 10.4 "Tiger" In-Reply-To: References: Message-ID: You need to set the MACOSX_DEPLOYMENT_TARGET environment variable to 10.4 instead of 10.1. dyld didn't support runtime lookup until 10.3. --keith On May 17, 2005, at 8:24 AM, Ben Kimball wrote: > Hello! > > I apologize if I'm on the wrong list to discuss this, but I was > wondering if > anyone else had run into trouble installing PyXML on Mac OS X 10.4? > I'm > trying to get it installed so that my local MoinMoinWiki will > publish an RSS > feed for its RecentChanges page. > > When I download the 0.8.4 package and run `python setup.py build`, my > machine works for a while, copies and compiles many things, but > then stops > short with this message: > > building '_xmlplus.parsers.pyexpat' extension > gcc -Wl,-F. -Wl,-F. -bundle -undefined dynamic_lookup > build/temp.darwin-8.0.0-Power_Macintosh-2.3/extensions/pyexpat.o > build/temp.darwin-8.0.0-Power_Macintosh-2.3/extensions/expat/lib/ > xmlparse.o > build/temp.darwin-8.0.0-Power_Macintosh-2.3/extensions/expat/lib/ > xmlrole.o > build/temp.darwin-8.0.0-Power_Macintosh-2.3/extensions/expat/lib/ > xmltok.o -o > build/lib.darwin-8.0.0-Power_Macintosh-2.3/_xmlplus/parsers/pyexpat.so > -flat_namespace > ld: warning unknown MACOSX_DEPLOYMENT_TARGET environment variable > value: > 10.4 ignored (using 10.1) > ld: flag: -undefined dynamic_lookup can't be used with > MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1 > error: command 'gcc' failed with exit status 1 > > Has anyone else seen this, or know what I can do about it? > > Thanks! > Ben > > -- > Ben Kimball > > Web Application Developer 512.232.2006> > Office of Resource Development, UT Austin > > > _______________________________________________ > XML-SIG maillist - XML-SIG at python.org > http://mail.python.org/mailman/listinfo/xml-sig > From aconrad.tlv at magic.fr Wed May 18 10:46:00 2005 From: aconrad.tlv at magic.fr (Alexandre CONRAD) Date: Wed, 18 May 2005 10:46:00 +0200 Subject: [XML-SIG] xml.dom won't traverse the whole XML tree In-Reply-To: <428A5B9A.2080805@lbl.gov> References: <428A3683.9000307@magic.fr> <428A5B9A.2080805@lbl.gov> Message-ID: <428B00C8.6070505@magic.fr> > you forgot to test and break if next is None > > while 1: > print walker.currentNode.getAttribute("file") > next = walker.nextNode() > if next is None: break > > See: http://pyxml.sourceforge.net/topics/howto/node22.html I understand that adding a break is maybe less confusing. But if you test the file, you will notice that it won't parse the XML file all the way. Executing the script that I have sent, results in the following output: ./mail.py geneelior.mpg presse.mpg meteo_eliorv2.mpg meteo_elior.mpg sport_eliorv2.mpg apprendrekiteboardwavemasters1.mpg apprendrekiteboardwavemasters2.mpg apprendrekiteboardwavemasters3.mpg apprendrekiteboardwavemasters4.mpg apprendrekiteboardwavemasters5.mpg apprendrekiteboardwavemasters6.mpg freestyle_wavemaster2004_1.mpg freestyle_wavemaster2004_2.mpg surfchataineliorpromo1.mpg surfchataineliorpromo2.mpg But as you can see, it stops at "surfchataineliorpromo2.mpg". But if you look in the XML file, you will notice that almost half of the XML file is missing. So why does it stops here ? That's my point. Any idea ? Best regards, -- Alexandre CONRAD - TLV Research & Development tel : +33 1 30 80 55 05 fax : +33 1 30 80 55 06 6, rue de la plaine 78860 - SAINT NOM LA BRETECHE FRANCE From zubin at mail.utexas.edu Wed May 18 16:05:12 2005 From: zubin at mail.utexas.edu (Ben Kimball) Date: Wed, 18 May 2005 09:05:12 -0500 Subject: [XML-SIG] Installing PyXML 0.8.4 on Mac OS X 10.4 "Tiger" In-Reply-To: Message-ID: > You need to set the MACOSX_DEPLOYMENT_TARGET environment variable to > 10.4 instead of 10.1. dyld didn't support runtime lookup until 10.3. I tried this, but it still wouldn't build. ld complained of a mismatch ("currently 10.4, was 10.3 on configure" or something like that). Thanks, Ben -- Ben Kimball Web Application Developer Office of Resource Development, UT Austin From thelen at palmbeach.k12.fl.us Wed May 18 16:29:06 2005 From: thelen at palmbeach.k12.fl.us (Diane Thelen) Date: Wed, 18 May 2005 10:29:06 -0400 Subject: [XML-SIG] Report Message-ID: <4CE8E87D1D204240A2B3020B6B199F9A0512F499@w2kexche.palmbeach.k12.fl.us> From aconrad.tlv at magic.fr Thu May 19 10:54:52 2005 From: aconrad.tlv at magic.fr (Alexandre CONRAD) Date: Thu, 19 May 2005 10:54:52 +0200 Subject: [XML-SIG] xml.dom won't traverse the whole XML tree In-Reply-To: <428B00C8.6070505@magic.fr> References: <428A3683.9000307@magic.fr> <428A5B9A.2080805@lbl.gov> <428B00C8.6070505@magic.fr> Message-ID: <428C545C.1010703@magic.fr> Hello, I have found out that this problem comes from a possible bad version of pyxml. I was using the standard python + xml package comming with RH9. I tryied the script on my windows machine and it worked. So I've installed PyXML 0.8.4, and it works fine now... Humpf... I thought my syntax was wrong. I was getting crazy... Regards, Alexandre CONRAD wrote: >>you forgot to test and break if next is None >> >>while 1: >> print walker.currentNode.getAttribute("file") >> next = walker.nextNode() >> if next is None: break >> >>See: http://pyxml.sourceforge.net/topics/howto/node22.html > > > I understand that adding a break is maybe less confusing. But if you > test the file, you will notice that it won't parse the XML file all the way. > > Executing the script that I have sent, results in the following output: > > ./mail.py > > > geneelior.mpg > > presse.mpg > > meteo_eliorv2.mpg > meteo_elior.mpg > > sport_eliorv2.mpg > > apprendrekiteboardwavemasters1.mpg > apprendrekiteboardwavemasters2.mpg > apprendrekiteboardwavemasters3.mpg > apprendrekiteboardwavemasters4.mpg > apprendrekiteboardwavemasters5.mpg > apprendrekiteboardwavemasters6.mpg > freestyle_wavemaster2004_1.mpg > freestyle_wavemaster2004_2.mpg > surfchataineliorpromo1.mpg > surfchataineliorpromo2.mpg > > > > But as you can see, it stops at "surfchataineliorpromo2.mpg". But if you > look in the XML file, you will notice that almost half of the XML file > is missing. So why does it stops here ? That's my point. > > Any idea ? > > Best regards, -- Alexandre CONRAD - TLV Research & Development tel : +33 1 30 80 55 05 fax : +33 1 30 80 55 06 6, rue de la plaine 78860 - SAINT NOM LA BRETECHE FRANCE --------------------------------------------------------------------------------------------------- Texte ins?r? par Panda Platinum 2005 Internet Security: S'il s'agit d'un mail ind?sirable (SPAM), cliquez sur le lien suivant pour le reclasser : http://127.0.0.1:6083/Panda?ID=pav_3569&SPAM=true --------------------------------------------------------------------------------------------------- From aconrad.tlv at magic.fr Thu May 19 10:55:38 2005 From: aconrad.tlv at magic.fr (Alexandre CONRAD) Date: Thu, 19 May 2005 10:55:38 +0200 Subject: [XML-SIG] xml.dom won't traverse the whole XML tree In-Reply-To: <428BC8DF.8070008@lbl.gov> References: <428A3683.9000307@magic.fr> <428A5B9A.2080805@lbl.gov> <428B00C8.6070505@magic.fr> <428BC8DF.8070008@lbl.gov> Message-ID: <428C548A.4070201@magic.fr> Dan Gunter wrote: > it runs through the whole file, for me, just in an infinite loop. so, I > guess I can't help you, since I don't see that behavior. maybe someone > else will. You do have to add the "if next is None: break" to see where the loop stops. If it stops at "surfchataineliorpromo2.mpg", then you have the same problem. If it stops at "amityville.mpg", then your version is correct. Anyhow, mine is now working fine after I upgraded to the latest PyXML. Thanks all for your help. Regards, -- Alexandre CONRAD - TLV Research & Development tel : +33 1 30 80 55 05 fax : +33 1 30 80 55 06 6, rue de la plaine 78860 - SAINT NOM LA BRETECHE FRANCE From Majordomo at delcam.com Thu May 19 12:58:29 2005 From: Majordomo at delcam.com (Majordomo@delcam.com) Date: Thu, 19 May 2005 11:58:29 +0100 (BST) Subject: [XML-SIG] Majordomo results: Paranoider Deutschenmoerder kommt in Psy Message-ID: <200505191058.LAA07719@pat.delcam.com> -- >>>> Lese selbst: **** Command 'lese' not recognized. >>>> http://brandenburg.rz.fhtw-berlin.de/poetschke.html **** Command 'http://brandenburg.rz.fhtw-berlin.de/poetschke.html' not recognized. **** No valid commands found. **** Commands must be in message BODY, not in HEADER. **** Help for Majordomo at delcam.com: This help message is being sent to you from the Majordomo mailing list management system at Majordomo at delcam.com. This is version 1.94.4 of Majordomo. If you're familiar with mail servers, an advanced user's summary of Majordomo's commands appears at the end of this message. Majordomo is an automated system which allows users to subscribe and unsubscribe to mailing lists, and to retrieve files from list archives. You can interact with the Majordomo software by sending it commands in the body of mail messages addressed to "Majordomo at delcam.com". Please do not put your commands on the subject line; Majordomo does not process commands in the subject line. You may put multiple Majordomo commands in the same mail message. Put each command on a line by itself. If you use a "signature block" at the end of your mail, Majordomo may mistakenly believe each line of your message is a command; you will then receive spurious error messages. To keep this from happening, either put a line starting with a hyphen ("-") before your signature, or put a line with just the word end on it in the same place. This will stop the Majordomo software from processing your signature as bad commands. Here are some of the things you can do using Majordomo: I. FINDING OUT WHICH LISTS ARE ON THIS SYSTEM To get a list of publicly-available mailing lists on this system, put the following line in the body of your mail message to Majordomo at delcam.com: lists Each line will contain the name of a mailing list and a brief description of the list. To get more information about a particular list, use the "info" command, supplying the name of the list. For example, if the name of the list about which you wish information is "demo-list", you would put the line info demo-list in the body of the mail message. II. SUBSCRIBING TO A LIST Once you've determined that you wish to subscribe to one or more lists on this system, you can send commands to Majordomo to have it add you to the list, so you can begin receiving mailings. To receive list mail at the address from which you're sending your mail, simply say "subscribe" followed by the list's name: subscribe demo-list If for some reason you wish to have the mailings go to a different address (a friend's address, a specific other system on which you have an account, or an address which is more correct than the one that automatically appears in the "From:" header on the mail you send), you would add that address to the command. For instance, if you're sending a request from your work account, but wish to receive "demo-list" mail at your personal account (for which we will use "jqpublic at my-isp.com" as an example), you'd put the line subscribe demo-list jqpublic at my-isp.com in the mail message body. Based on configuration decisions made by the list owners, you may be added to the mailing list automatically. You may also receive notification that an authorization key is required for subscription. Another message will be sent to the address to be subscribed (which may or may not be the same as yours) containing the key, and directing the user to send a command found in that message back to Majordomo at delcam.com. (This can be a bit of extra hassle, but it helps keep you from being swamped in extra email by someone who forged requests from your address.) You may also get a message that your subscription is being forwarded to the list owner for approval; some lists have waiting lists, or policies about who may subscribe. If your request is forwarded for approval, the list owner should contact you soon after your request. Upon subscribing, you should receive an introductory message, containing list policies and features. Save this message for future reference; it will also contain exact directions for unsubscribing. If you lose the intro mail and would like another copy of the policies, send this message to Majordomo at delcam.com: intro demo-list (substituting, of course, the real name of your list for "demo-list"). III. UNSUBSCRIBING FROM MAILING LISTS Your original intro message contains the exact command which should be used to remove your address from the list. However, in most cases, you may simply send the command "unsubscribe" followed by the list name: unsubscribe demo-list (This command may fail if your provider has changed the way your address is shown in your mail.) To remove an address other than the one from which you're sending the request, give that address in the command: unsubscribe demo-list jqpublic at my-isp.com In either of these cases, you can tell Majordomo at delcam.com to remove the address in question from all lists on this server by using "*" in place of the list name: unsubscribe * unsubscribe * jqpublic at my-isp.com IV. FINDING THE LISTS TO WHICH AN ADDRESS IS SUBSCRIBED To find the lists to which your address is subscribed, send this command in the body of a mail message to Majordomo at delcam.com: which You can look for other addresses, or parts of an address, by specifying the text for which Majordomo should search. For instance, to find which users at my-isp.com are subscribed to which lists, you might send the command which my-isp.com Note that many list owners completely or fully disable the "which" command, considering it a privacy violation. V. FINDING OUT WHO'S SUBSCRIBED TO A LIST To get a list of the addresses on a particular list, you may use the "who" command, followed by the name of the list: who demo-list Note that many list owners allow only a list's subscribers to use the "who" command, or disable it completely, believing it to be a privacy violation. VI. RETRIEVING FILES FROM A LIST'S ARCHIVES Many list owners keep archives of files associated with a list. These may include: - back issues of the list - help files, user profiles, and other documents associated with the list - daily, monthly, or yearly archives for the list To find out if a list has any files associated with it, use the "index" command: index demo-list If you see files in which you're interested, you may retrieve them by using the "get" command and specifying the list name and archive filename. For instance, to retrieve the files called "profile.form" (presumably a form to fill out with your profile) and "demo-list.9611" (presumably the messages posted to the list in November 1996), you would put the lines get demo-list profile.form get demo-list demo-list.9611 in your mail to Majordomo at delcam.com. VII. GETTING MORE HELP To contact a human site manager, send mail to Majordomo-Owner at delcam.com. To contact the owner of a specific list, send mail to that list's approval address, which is formed by adding "-approval" to the user-name portion of the list's address. For instance, to contact the list owner for demo-list at delcam.com, you would send mail to demo-list-approval at delcam.com. To get another copy of this help message, send mail to Majordomo at delcam.com with a line saying help in the message body. VIII. COMMAND SUMMARY FOR ADVANCED USERS In the description below items contained in []'s are optional. When providing the item, do not include the []'s around it. Items in angle brackets, such as
, are meta-symbols that should be replaced by appropriate text without the angle brackets. It understands the following commands: subscribe [
] Subscribe yourself (or
if specified) to the named . unsubscribe [
] Unsubscribe yourself (or
if specified) from the named . "unsubscribe *" will remove you (or
) from all lists. This _may not_ work if you have subscribed using multiple addresses. get Get a file related to . index Return an index of files you can "get" for . which [
] Find out which lists you (or
if specified) are on. who Find out who is on the named . info Retrieve the general introductory information for the named . intro Retrieve the introductory message sent to new users. Non-subscribers may not be able to retrieve this. lists Show the lists served by this Majordomo server. help Retrieve this message. end Stop processing commands (useful if your mailer adds a signature). Commands should be sent in the body of an email message to "Majordomo at delcam.com". Multiple commands can be processed provided each occurs on a separate line. Commands in the "Subject:" line are NOT processed. If you have any questions or problems, please contact "Majordomo-Owner at delcam.com". From walter at livinglogic.de Fri May 20 15:17:26 2005 From: walter at livinglogic.de (=?ISO-8859-1?Q?Walter_D=F6rwald?=) Date: Fri, 20 May 2005 15:17:26 +0200 Subject: [XML-SIG] ANN: XIST 2.10 released Message-ID: <428DE366.5020900@livinglogic.de> XIST 2.10 has been released! What is it? =========== XIST is an extensible HTML/XML generator written in Python. XIST is also a DOM parser (built on top of SAX2) with a very simple and Pythonesque tree API. Every XML element type corresponds to a Python class, and these Python classes provide a conversion method to transform the XML tree (e.g. into HTML). XIST can be considered "object oriented XSL". What's new in version 2.10? =========================== * The content of the processing instruction ll.xist.ns.code.pyexec will not be executed at construction time, but at conversion time. The code in ll.xist.ns.code.pyexec or ll.xist.ns.code.pyeval will no longer be executed in the ll.xist.sandbox module (which has been removed), but in a sandbox dictionary in the converter context of the ll.xist.ns.code namespace. * The tests have been ported to py.test. * The method mapped is now callable without arguments. In this case a converter will be created on the fly. You can pass constructor arguments for this converter to mapped as keyword arguments. * The publishing API has changed again: ll.xist.publishers.Publisher.publish now longer accepts an argument stream to which the byte strings are written, but it is a generator now. The publisher methods write and writetext have been renamed to encode and encodetext and return the encoded byte string, instead of writing it directly to the stream. There's a new generator method bytes for nodes now, which can be passed the same arguments as asBytes. These changes should help when using XIST in WSGI applications. * The iterator returned from Element.__getitem__, Frag.__getitem__ and the walk method now supports __getitem__ itself, so you can write table[html.tr][0] to get the first row from a table or page.walk(xsc.FindTypeAll(html.td))[-1] to get the last table cell from a complete HTML page. * Several bugs in the namespaces ll.xist.ns.meta, ll.xist.ns.form and ll.xist.ns.specials have been fixed. * The namespace modules ll.xist.ns.css and ll.xist.ns.cssspecials have been removed. For changes in older versions see: http://www.livinglogic.de/Python/xist/History.html Where can I get it? =================== XIST can be downloaded from http://ftp.livinglogic.de/xist/ or ftp://ftp.livinglogic.de/pub/livinglogic/xist/ Web pages are at http://www.livinglogic.de/Python/xist/ ViewCVS access is available at http://www.livinglogic.de/viewcvs/ For information about the mailing lists go to http://www.livinglogic.de/Python/xist/Mailinglists.html Bye, Walter D?rwald From troyguest at hotmail.com Sat May 21 08:33:32 2005 From: troyguest at hotmail.com (troy guest) Date: Sat, 21 May 2005 06:33:32 +0000 Subject: [XML-SIG] (no subject) Message-ID: what is this for From Uche.Ogbuji at fourthought.com Sat May 21 17:41:10 2005 From: Uche.Ogbuji at fourthought.com (Uche Ogbuji) Date: Sat, 21 May 2005 09:41:10 -0600 Subject: [XML-SIG] xml.dom won't traverse the whole XML tree In-Reply-To: <428C545C.1010703@magic.fr> References: <428A3683.9000307@magic.fr> <428A5B9A.2080805@lbl.gov> <428B00C8.6070505@magic.fr> <428C545C.1010703@magic.fr> Message-ID: <1116690070.26122.224.camel@borgia> On Thu, 2005-05-19 at 10:54 +0200, Alexandre CONRAD wrote: > Hello, > > I have found out that this problem comes from a possible bad version of > pyxml. I was using the standard python + xml package comming with RH9. I > tryied the script on my windows machine and it worked. So I've installed > PyXML 0.8.4, and it works fine now... > > Humpf... I thought my syntax was wrong. I was getting crazy... Sorry it took me a while to get to this thread, but are you really sure you want to be using 4DOM? It offers the worst performance of all options, I think. Why not consider using minidom? You can do a lot of the node filter type stuff using techniques such as I explore here: http://www.xml.com/pub/a/2003/01/08/py-xml.html Of course, I also encourage you to try Domlette from 4Suite, which is pretty comfy to any DOM users, but is also very fast and offers full XPath support (which should also eliminate the NodeFilter cruft, in case generators bend your brain). -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://fourthought.com http://copia.ogbuji.net http://4Suite.org Use CSS to display XML, part 2 - http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.html XML Output with 4Suite & Amara - http://www.xml.com/pub/a/2005/04/20/py-xml.html Use XSLT to prepare XML for import into OpenOffice Calc - http://www.ibm.com/developerworks/xml/library/x-oocalc/ Schema standardization for top-down semantic transparency - http://www-128.ibm.com/developerworks/xml/library/x-think31.html From Amitpython5 at aol.com Sun May 22 18:14:00 2005 From: Amitpython5 at aol.com (Amitpython5@aol.com) Date: Sun, 22 May 2005 12:14:00 EDT Subject: [XML-SIG] Installing PyXml Help. Message-ID: <67.4572a48f.2fc209c8@aol.com> Hello, I'm relatively new to Python, and ran into an error while installing PyXml. I have Python 2.1 installed on my HP-UX host, and everything has been running fine. I'm trying to install Soap package, which needs to have PyXml installed. When I try to install PyXml, I get the following message: -> python setup.py build running build running build_py not copying xml/FtCore.py (output up-to-date) not copying xml/__init__.py (output up-to-date) not copying xml/ns.py (output up-to-date) not copying xml/dom/Attr.py (output up-to-date) not copying xml/dom/CDATASection.py (output up-to-date) not copying xml/dom/CharacterData.py (output up-to-date) not copying xml/dom/Comment.py (output up-to-date) not copying xml/dom/DOMImplementation.py (output up-to-date) not copying xml/dom/Document.py (output up-to-date) not copying xml/dom/DocumentFragment.py (output up-to-date) not copying xml/dom/DocumentType.py (output up-to-date) not copying xml/dom/Element.py (output up-to-date) not copying xml/dom/Entity.py (output up-to-date) not copying xml/dom/EntityReference.py (output up-to-date) not copying xml/dom/Event.py (output up-to-date) not copying xml/dom/FtNode.py (output up-to-date) not copying xml/dom/MessageSource.py (output up-to-date) not copying xml/dom/NamedNodeMap.py (output up-to-date) not copying xml/dom/NodeFilter.py (output up-to-date) not copying xml/dom/NodeIterator.py (output up-to-date) not copying xml/dom/NodeList.py (output up-to-date) not copying xml/dom/Notation.py (output up-to-date) not copying xml/dom/ProcessingInstruction.py (output up-to-date) not copying xml/dom/Range.py (output up-to-date) not copying xml/dom/Text.py (output up-to-date) not copying xml/dom/TreeWalker.py (output up-to-date) not copying xml/dom/__init__.py (output up-to-date) not copying xml/dom/domreg.py (output up-to-date) not copying xml/dom/expatbuilder.py (output up-to-date) not copying xml/dom/javadom.py (output up-to-date) not copying xml/dom/minicompat.py (output up-to-date) not copying xml/dom/minidom.py (output up-to-date) not copying xml/dom/minitraversal.py (output up-to-date) not copying xml/dom/pulldom.py (output up-to-date) not copying xml/dom/xmlbuilder.py (output up-to-date) not copying xml/dom/html/GenerateHtml.py (output up-to-date) not copying xml/dom/html/HTMLAnchorElement.py (output up-to-date) not copying xml/dom/html/HTMLAppletElement.py (output up-to-date) not copying xml/dom/html/HTMLAreaElement.py (output up-to-date) not copying xml/dom/html/HTMLBRElement.py (output up-to-date) not copying xml/dom/html/HTMLBaseElement.py (output up-to-date) not copying xml/dom/html/HTMLBaseFontElement.py (output up-to-date) not copying xml/dom/html/HTMLBodyElement.py (output up-to-date) not copying xml/dom/html/HTMLButtonElement.py (output up-to-date) not copying xml/dom/html/HTMLCollection.py (output up-to-date) not copying xml/dom/html/HTMLDListElement.py (output up-to-date) not copying xml/dom/html/HTMLDOMImplementation.py (output up-to-date) not copying xml/dom/html/HTMLDirectoryElement.py (output up-to-date) not copying xml/dom/html/HTMLDivElement.py (output up-to-date) not copying xml/dom/html/HTMLDocument.py (output up-to-date) not copying xml/dom/html/HTMLElement.py (output up-to-date) not copying xml/dom/html/__init__.py (output up-to-date) not copying xml/dom/html/HTMLFieldSetElement.py (output up-to-date) not copying xml/dom/html/HTMLFontElement.py (output up-to-date) not copying xml/dom/html/HTMLFormElement.py (output up-to-date) not copying xml/dom/html/HTMLFrameElement.py (output up-to-date) not copying xml/dom/html/HTMLFrameSetElement.py (output up-to-date) not copying xml/dom/html/HTMLHRElement.py (output up-to-date) not copying xml/dom/html/HTMLHeadElement.py (output up-to-date) not copying xml/dom/html/HTMLHeadingElement.py (output up-to-date) not copying xml/dom/html/HTMLHtmlElement.py (output up-to-date) not copying xml/dom/html/HTMLIFrameElement.py (output up-to-date) not copying xml/dom/html/HTMLImageElement.py (output up-to-date) not copying xml/dom/html/HTMLInputElement.py (output up-to-date) not copying xml/dom/html/HTMLIsIndexElement.py (output up-to-date) not copying xml/dom/html/HTMLLIElement.py (output up-to-date) not copying xml/dom/html/HTMLLabelElement.py (output up-to-date) not copying xml/dom/html/HTMLLegendElement.py (output up-to-date) not copying xml/dom/html/HTMLLinkElement.py (output up-to-date) not copying xml/dom/html/HTMLMapElement.py (output up-to-date) not copying xml/dom/html/HTMLMenuElement.py (output up-to-date) not copying xml/dom/html/HTMLMetaElement.py (output up-to-date) not copying xml/dom/html/HTMLModElement.py (output up-to-date) not copying xml/dom/html/HTMLOListElement.py (output up-to-date) not copying xml/dom/html/HTMLObjectElement.py (output up-to-date) not copying xml/dom/html/HTMLOptGroupElement.py (output up-to-date) not copying xml/dom/html/HTMLOptionElement.py (output up-to-date) not copying xml/dom/html/HTMLParagraphElement.py (output up-to-date) not copying xml/dom/html/HTMLParamElement.py (output up-to-date) not copying xml/dom/html/HTMLPreElement.py (output up-to-date) not copying xml/dom/html/HTMLQuoteElement.py (output up-to-date) not copying xml/dom/html/HTMLScriptElement.py (output up-to-date) not copying xml/dom/html/HTMLSelectElement.py (output up-to-date) not copying xml/dom/html/HTMLStyleElement.py (output up-to-date) not copying xml/dom/html/HTMLTableCaptionElement.py (output up-to-date) not copying xml/dom/html/HTMLTableCellElement.py (output up-to-date) not copying xml/dom/html/HTMLTableColElement.py (output up-to-date) not copying xml/dom/html/HTMLTableElement.py (output up-to-date) not copying xml/dom/html/HTMLTableRowElement.py (output up-to-date) not copying xml/dom/html/HTMLTableSectionElement.py (output up-to-date) not copying xml/dom/html/HTMLTextAreaElement.py (output up-to-date) not copying xml/dom/html/HTMLTitleElement.py (output up-to-date) not copying xml/dom/html/HTMLUListElement.py (output up-to-date) not copying xml/dom/ext/Dom2Sax.py (output up-to-date) not copying xml/dom/ext/Printer.py (output up-to-date) not copying xml/dom/ext/Visitor.py (output up-to-date) not copying xml/dom/ext/XHtml2HtmlPrinter.py (output up-to-date) not copying xml/dom/ext/XHtmlPrinter.py (output up-to-date) not copying xml/dom/ext/__init__.py (output up-to-date) not copying xml/dom/ext/c14n.py (output up-to-date) not copying xml/dom/ext/reader/HtmlLib.py (output up-to-date) not copying xml/dom/ext/reader/HtmlSax.py (output up-to-date) not copying xml/dom/ext/reader/PyExpat.py (output up-to-date) not copying xml/dom/ext/reader/Sax.py (output up-to-date) not copying xml/dom/ext/reader/Sax2.py (output up-to-date) not copying xml/dom/ext/reader/Sax2Lib.py (output up-to-date) not copying xml/dom/ext/reader/Sgmlop.py (output up-to-date) not copying xml/dom/ext/reader/__init__.py (output up-to-date) not copying xml/marshal/__init__.py (output up-to-date) not copying xml/marshal/generic.py (output up-to-date) not copying xml/marshal/wddx.py (output up-to-date) not copying xml/unicode/__init__.py (output up-to-date) not copying xml/unicode/iso8859.py (output up-to-date) not copying xml/unicode/utf8_iso.py (output up-to-date) not copying xml/parsers/__init__.py (output up-to-date) not copying xml/parsers/expat.py (output up-to-date) not copying xml/parsers/sgmllib.py (output up-to-date) not copying xml/parsers/xmlproc/__init__.py (output up-to-date) not copying xml/parsers/xmlproc/_outputters.py (output up-to-date) not copying xml/parsers/xmlproc/catalog.py (output up-to-date) not copying xml/parsers/xmlproc/charconv.py (output up-to-date) not copying xml/parsers/xmlproc/dtdparser.py (output up-to-date) not copying xml/parsers/xmlproc/errors.py (output up-to-date) not copying xml/parsers/xmlproc/namespace.py (output up-to-date) not copying xml/parsers/xmlproc/utils.py (output up-to-date) not copying xml/parsers/xmlproc/xcatalog.py (output up-to-date) not copying xml/parsers/xmlproc/xmlapp.py (output up-to-date) not copying xml/parsers/xmlproc/xmldtd.py (output up-to-date) not copying xml/parsers/xmlproc/xmlproc.py (output up-to-date) not copying xml/parsers/xmlproc/xmlutils.py (output up-to-date) not copying xml/parsers/xmlproc/xmlval.py (output up-to-date) not copying xml/sax/__init__.py (output up-to-date) not copying xml/sax/_exceptions.py (output up-to-date) not copying xml/sax/expatreader.py (output up-to-date) not copying xml/sax/handler.py (output up-to-date) not copying xml/sax/sax2exts.py (output up-to-date) not copying xml/sax/saxexts.py (output up-to-date) not copying xml/sax/saxlib.py (output up-to-date) not copying xml/sax/saxutils.py (output up-to-date) not copying xml/sax/writer.py (output up-to-date) not copying xml/sax/xmlreader.py (output up-to-date) not copying xml/sax/drivers/__init__.py (output up-to-date) not copying xml/sax/drivers/drv_htmllib.py (output up-to-date) not copying xml/sax/drivers/drv_ltdriver.py (output up-to-date) not copying xml/sax/drivers/drv_ltdriver_val.py (output up-to-date) not copying xml/sax/drivers/drv_pyexpat.py (output up-to-date) not copying xml/sax/drivers/drv_sgmllib.py (output up-to-date) not copying xml/sax/drivers/drv_sgmlop.py (output up-to-date) not copying xml/sax/drivers/drv_xmldc.py (output up-to-date) not copying xml/sax/drivers/drv_xmllib.py (output up-to-date) not copying xml/sax/drivers/drv_xmlproc.py (output up-to-date) not copying xml/sax/drivers/drv_xmlproc_val.py (output up-to-date) not copying xml/sax/drivers/drv_xmltoolkit.py (output up-to-date) not copying xml/sax/drivers/pylibs.py (output up-to-date) not copying xml/sax/drivers2/__init__.py (output up-to-date) not copying xml/sax/drivers2/drv_htmllib.py (output up-to-date) not copying xml/sax/drivers2/drv_javasax.py (output up-to-date) not copying xml/sax/drivers2/drv_pyexpat.py (output up-to-date) not copying xml/sax/drivers2/drv_sgmllib.py (output up-to-date) not copying xml/sax/drivers2/drv_sgmlop.py (output up-to-date) not copying xml/sax/drivers2/drv_sgmlop_html.py (output up-to-date) not copying xml/sax/drivers2/drv_xmlproc.py (output up-to-date) not copying xml/utils/__init__.py (output up-to-date) not copying xml/utils/characters.py (output up-to-date) not copying xml/utils/iso8601.py (output up-to-date) not copying xml/utils/qp_xml.py (output up-to-date) not copying xml/schema/__init__.py (output up-to-date) not copying xml/schema/trex.py (output up-to-date) not copying xml/xpath/BuiltInExtFunctions.py (output up-to-date) not copying xml/xpath/Context.py (output up-to-date) not copying xml/xpath/Conversions.py (output up-to-date) not copying xml/xpath/CoreFunctions.py (output up-to-date) not copying xml/xpath/ExpandedNameWrapper.py (output up-to-date) not copying xml/xpath/MessageSource.py (output up-to-date) not copying xml/xpath/NamespaceNode.py (output up-to-date) not copying xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py (output up-to-date) not copying xml/xpath/ParsedAbbreviatedRelativeLocationPath.py (output up-to-date) not copying xml/xpath/ParsedAbsoluteLocationPath.py (output up-to-date) not copying xml/xpath/ParsedAxisSpecifier.py (output up-to-date) not copying xml/xpath/ParsedExpr.py (output up-to-date) not copying xml/xpath/ParsedNodeTest.py (output up-to-date) not copying xml/xpath/ParsedPredicateList.py (output up-to-date) not copying xml/xpath/ParsedStep.py (output up-to-date) not copying xml/xpath/ParsedRelativeLocationPath.py (output up-to-date) not copying xml/xpath/Set.py (output up-to-date) not copying xml/xpath/Util.py (output up-to-date) not copying xml/xpath/XPathGrammar.py (output up-to-date) not copying xml/xpath/XPathParser.py (output up-to-date) not copying xml/xpath/XPathParserBase.py (output up-to-date) not copying xml/xpath/__init__.py (output up-to-date) not copying xml/xpath/pyxpath.py (output up-to-date) not copying xml/xpath/yappsrt.py (output up-to-date) running build_ext building '_xmlplus.parsers.pyexpat' extension gcc -g -O2 -Wall -Wstrict-prototypes -D_REENTRANT -fpic -DXML_NS=1 -DXML_DTD=1 -DBYTEORDER=4321 -DXML_CONTEXT_BYTES=1024 -Iextensions/expat/lib -I/images/QA/QATools12/lib/python2.1 -c extensions/pyexpat.c -o build/temp.hp-ux-B.11.11-9000/800-2.1/pyexpat.o extensions/pyexpat.c:5:20: Python.h: No such file or directory extensions/pyexpat.c:8:21: compile.h: No such file or directory extensions/pyexpat.c:9:25: frameobject.h: No such file or directory error: command 'gcc' failed with exit status 1 How do I get Python.h and the other missing files? Any help will be greatly appreciated. Thanks, Amit. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/xml-sig/attachments/20050522/e5b4ccd5/attachment.htm From paul at boddie.org.uk Mon May 23 00:44:35 2005 From: paul at boddie.org.uk (Paul Boddie) Date: Mon, 23 May 2005 00:44:35 +0200 Subject: [XML-SIG] Installing PyXml Help. In-Reply-To: <67.4572a48f.2fc209c8@aol.com> References: <67.4572a48f.2fc209c8@aol.com> Message-ID: <200505230044.35715.paul@boddie.org.uk> On Sunday 22 May 2005 18:14, Amitpython5 at aol.com wrote: > Hello, > > I'm relatively new to Python, and ran into an error while installing > PyXml. I have Python 2.1 installed on my HP-UX host, and everything has > been running fine. I'm trying to install Soap package, which needs to have > PyXml installed. When I try to install PyXml, I get the following message: [...] > extensions/pyexpat.c:5:20: Python.h: No such file or directory > extensions/pyexpat.c:8:21: compile.h: No such file or directory > extensions/pyexpat.c:9:25: frameobject.h: No such file or directory > error: command 'gcc' failed with exit status 1 > > How do I get Python.h and the other missing files? > Any help will be greatly appreciated. This looks very similar to the classic case of "overpackaging" seen in many Linux distributions, where the Python binaries and libraries are installed but not the header files. I can't really remember what the packaging policy is for the various proprietary UNIX variants, but I imagine that the headers didn't get installed with the Python package and that you either have to find the "development" Python package with all the missing bits or, and this is what I always tended to do, install Python in some non-official location using the source distribution (/usr/local might be alright - that's the default - but anywhere will do). Since you've clearly got development tools installed, I'd actually recommend that you install Python from source, especially since there aren't so many compelling reasons to stick with Python 2.1. Paul From bortzmeyer at nic.fr Mon May 23 14:50:53 2005 From: bortzmeyer at nic.fr (Stephane Bortzmeyer) Date: Mon, 23 May 2005 14:50:53 +0200 Subject: [XML-SIG] Installing PyXml Help. In-Reply-To: <200505230044.35715.paul@boddie.org.uk> References: <67.4572a48f.2fc209c8@aol.com> <200505230044.35715.paul@boddie.org.uk> Message-ID: <20050523125053.GA6435@nic.fr> On Mon, May 23, 2005 at 12:44:35AM +0200, Paul Boddie wrote a message of 36 lines which said: > I have Python 2.1 installed on my HP-UX host, If the OP manages an HP-UX box, he probably knows http://gatekeep.cs.utah.edu/ (and there is a Python 2.3 package). (It does not seem to split between "development" and "use" packages.) From eanwhite at fas.harvard.edu Mon May 23 21:07:22 2005 From: eanwhite at fas.harvard.edu (Ean White) Date: Mon, 23 May 2005 15:07:22 -0400 Subject: [XML-SIG] problem installing on Mac OS X Server Message-ID: <1477c3349299794f33e56817b9beeeec@fas.harvard.edu> Hiya, I'm not terribly versed in this stuff and can't figure out where to go from here: myserver:~/Desktop/PyXML-0.8.4 root# python setup.py install Traceback (most recent call last): File "setup.py", line 127, in ? config_h_vars = parse_config_h(open(config_h)) IOError: [Errno 2] No such file or directory: '/System/Library/Frameworks/Python.framework/Versions/2.3/include/ python2.3/pyconfig.h' Any suggestions? Thanks, Ean -- Ean White, Technical Director Harvard University Studio for Electroacoustic Composition vox: 617-496-6683 ? fax: 617-496-8081 ? mob: 617-792-3295 eanwhite at fas.harvard.edu ? http://huseac.fas.harvard.edu/ From chle at calpoly.edu Tue May 24 21:16:38 2005 From: chle at calpoly.edu (Carol Le) Date: Tue, 24 May 2005 12:16:38 -0700 Subject: [XML-SIG] XBEL DTD validation question Message-ID: <41E01F6B-E5D1-4EB1-9B19-23EAFDA3BD85@calpoly.edu> Dear XML-SIG, I apologize if this is not the right place to direct my question, but I have not been able to find any forums with support for XBEL. If this is not the write place to direct these questions, please let me know where I can get some help. :c) I am working on a master's thesis that argues for a standard to be established for internet bookmarks. My thesis investigates XBEL as a possible format for this standard. As en exercise, I have written an XML parser that transforms a Safari bookmarks file to an XBEL file. However, when I try to validate the XBEL file with the DTD, I have two re-occurring validation errors. One error that I continually get throughout my XML document is something like the following: -- Attribute value "09BDE5A6-6CE7-4137-AD4D-5FC6D380BFD5" of type ID must be a name This happens for every tag that I use where someID does not start with a letter. Does XBEL only allow name ID's? Safari uses these id's that can oftentimes start with a number. Does this mean that for XBEL, you cannot use Safari's ID's? The second error that I get is something like the following: -- Attribute "file-version" must be declared for element type "metadata". This occurs for every single element I have. For the above error, for example, the metadata element was . From reading the DTD and looking at some XBEL examples, I was under the understanding that the metadata attribute was so that you could put any application-specific items. However, all of my application-specific items are not validating correctly. Any suggestions? I was unable to attach my xml file, as my email is getting reject as spam. So please let me know if you would like to see the XBEL file I'm trying to validate. Thank you very much -- I appreciate your help greatly! Carol Le From fdrake at acm.org Tue May 24 22:21:34 2005 From: fdrake at acm.org (Fred L. Drake, Jr.) Date: Tue, 24 May 2005 16:21:34 -0400 Subject: [XML-SIG] XBEL DTD validation question In-Reply-To: <41E01F6B-E5D1-4EB1-9B19-23EAFDA3BD85@calpoly.edu> References: <41E01F6B-E5D1-4EB1-9B19-23EAFDA3BD85@calpoly.edu> Message-ID: <200505241621.34124.fdrake@acm.org> On Tuesday 24 May 2005 15:16, Carol Le wrote: > I apologize if this is not the right place to direct my question, but > I have not been able to find any forums with support for XBEL. If > this is not the write place to direct these questions, please let me > know where I can get some help. :c) This is as good a place as any. > I am working on a master's thesis that argues for a standard to be > established for internet bookmarks. My thesis investigates XBEL as a I'd be interested in seeing the result, or a summary, when your thesis is complete. > One error that I continually get throughout my XML document is > something like the following: > -- Attribute value "09BDE5A6-6CE7-4137-AD4D-5FC6D380BFD5" of type ID > must be a name > This happens for every tag that I use where > someID does not start with a letter. Does XBEL only allow name > ID's? Safari uses these id's that can oftentimes start with a > number. Does this mean that for XBEL, you cannot use Safari's ID's? XBEL uses XML IDs. It sounds like Safari is using something else as an identifier; not unreasonable. Encoding these into XBEL requires using some other metadata structure. > The second error that I get is something like the following: > -- Attribute "file-version" must be declared for element type > "metadata". > This occurs for every single element I have. For the > above error, for example, the metadata element was owner="Safari" file-version="1"/>. From reading the DTD and looking > at some XBEL examples, I was under the understanding that the > metadata attribute was so that you could put any application-specific > items. However, all of my application-specific items are not > validating correctly. Any suggestions? To validate, you'll need to create a new DTD that adds the additional structures you need. DTD validation can't specify that unknown attributes are allowed; this is a general limitation of DTDs. It should be fairly easy to create a derived DTD that supports the additional structures you need. Alternatively, you could create another kind of schema (W3C XSD, RelaxNG) for ues in validating specific documents. -Fred -- Fred L. Drake, Jr. From marco at morca.de Wed May 25 14:49:47 2005 From: marco at morca.de (marco) Date: Wed, 25 May 2005 14:49:47 +0200 Subject: [XML-SIG] pyxml and cygwin Message-ID: <200505251449.49990.marco@morca.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hi folks, is there a port of pyxml for cygwin ? thanks marco -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFClHRsOREMKO0oAdcRAsznAJ9O+kKOwHyWSqjgvafiOsxrnO0TNACgvLGX 8/VYaKUWBy6Ovq8KtaWk2s8= =tYmA -----END PGP SIGNATURE----- From evdo.hsdpa at gmail.com Wed May 25 23:17:07 2005 From: evdo.hsdpa at gmail.com (Robert Kim Wireless Internet Advisor) Date: Wed, 25 May 2005 14:17:07 -0700 Subject: [XML-SIG] geobloggers.com - xml wireless internet coverage maps - help!!! Message-ID: <1ec620e905052514174d24c149@mail.gmail.com> hi... i am putting together a google map of all the hotspots on earth.. i know.. sounds tough but shouldnt be... all is done EXCEPT the server side xml part... any idea how to build a GeoBloggers.com for wifi maps? -- Robert Q Kim, Wireless Internet Advisor http://wirelessinternetcoverage.com 2611 S. Pacific Coast Highway 101 Suite 102 Cardiff by the Sea, CA 92007 206 984 0880 From tom.cocagne at gmail.com Thu May 26 06:25:29 2005 From: tom.cocagne at gmail.com (Tom Cocagne) Date: Thu, 26 May 2005 00:25:29 -0400 Subject: [XML-SIG] Request for comments on new XML parsing tool Message-ID: <198edda905052521257327bb9e@mail.gmail.com> Greetings all. I wrote a small XML utility a while back that's worked out quite well for me so I thought I'd clean it up and see if anyone thinks it might be worth publishing on pypi. I wrote the initial version a couple years ago when I just wanted a really easy way to read in XML files. The result wasn't anything fancy, just a simplification of the SAX callback mechanism. Since then I've added a few features that take it a bit beyond the casual hack and possibly even into the realm of being generally useful. The two features that set ESSAX (Even Simpler Simple Api for Xml) apart from your typical SAX simplification is that it provides automatic type checking and conversion for tag attributes and it has built-in support for simple, DTD-like validation (nothing particularly fancy but enough to be useful). It's a single python module of about 1000 lines and works with the standard interpreter's XML parser. The target niche for ESSAX is in application domains which are not overly concerned XML parsing performance and prefer to just keep things simple. If anyone on the list has the time and interest to take a look, I'd appreciate your comments. The code and a simple example/test program are included in the tarball attached to this e-mail. Cheers, Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: essax_0.9.tar.gz Type: application/x-gzip Size: 10049 bytes Desc: not available Url : http://mail.python.org/pipermail/xml-sig/attachments/20050526/4ce4e307/essax_0.9.tar.bin