[XML-SIG] Re: [4suite] empty namespaces
Uche Ogbuji
uche.ogbuji@fourthought.com
Mon, 19 Nov 2001 09:34:29 -0700
Alexandre Fayolle wrote:
>
> > On Fri, 16 Nov 2001, Alexandre Fayolle wrote:
> >
> > I've fixed the handlers in dom/ext/reader/Sax2.py and PyExpat.py to work
> > properly. The startElement callback was wrong. I've also commited changes
> > that enable the xmlns='' attribute to work.
>
> WARNING : when working with the current code in CVS, you'll have to change
> all the code accessing attributes in your code :
> elt.getAttributeNS('','foo')
> becomes
> elt.getAttributeNS(None,'foo')
>
> This includes lots of code in xml.xslt; I'll try to commit the changes in
> PyXML's repository tonight or tomorrow morning since I have to leave early
> today, and I'll submit a patch for 4Suite's at the same time.
Thanks so much.
> Would adding an "EMPTY_NAMESPACE = None" to xml/dom/__init__.py, just
> after the definitions of XML_NAMESPACE and XMLNS_NAMESPACE be considered
> to be a good idea?
Yes. Please do that as well.
--
Uche Ogbuji Principal Consultant
uche.ogbuji@fourthought.com +1 303 583 9900 x 101
Fourthought, Inc. http://Fourthought.com
4735 East Walnut St, Boulder, CO 80301-2537, USA
XML strategy, XML tools (http://4Suite.org), knowledge management