[XML-SIG] empty namespaces

Alexandre Fayolle Alexandre.Fayolle@logilab.fr
Mon, 19 Nov 2001 16:03:41 +0100 (CET)


> 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.

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?

Alexandre Fayolle
-- 
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Narval, the first software agent available as free software (GPL).