W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > October 2011

Re: Support for integration with XML is broken

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Thu, 20 Oct 2011 15:52:58 +0100
To: Ivan Herman <ivan@w3.org>
Cc: Toby Inkster <tai@g5n.co.uk>, public-rdfa-wg@w3.org
Message-ID: <f5bty73lnp1.fsf@calexico.inf.ed.ac.uk>
Ivan Herman writes:

> HST writes: 
>> What version(s) of Python are we worrying about here?
>
> 2.6 and 2.7. The latest ones in the Python 2 series

The following works for me in 2.6 and 2.7 (the former my existing
installations on Windows, Cygwin and Linux, the latter freshly
installed on Windows):

>>> from xml.dom.minidom import parseString
>>> d=parseString("<r xmlns:x='http://www.w3.org/1999/xhtml' x:about='#foo'/>")
>>> d.firstChild.getAttributeNode('x:about').localName
u'about'
>>> d.firstChild.getAttributeNode('x:about').namespaceURI
u'http://www.w3.org/1999/xhtml'

What am I missing?

ht
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]
Received on Thursday, 20 October 2011 14:53:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 04:55:18 GMT