- From: Ivan Herman <ivan@w3.org>
- Date: Thu, 20 Oct 2011 17:04:07 +0200
- To: ht@inf.ed.ac.uk (Henry S. Thompson)
- Cc: Toby Inkster <tai@g5n.co.uk>, public-rdfa-wg@w3.org
- Message-Id: <907E4D2F-3E84-4003-BE04-F568901BDF08@w3.org>
Doesn't DOM have a bunch calls in the form blablaNS? These do not work, afaik. So yes, you can get the attribute value that happens to have a AAA:BBB format. But it does not interpret this. This means that an implementation would have to check every attribute by - looking at the BBB format - looking at the AAA:BBB format and check whether there is somewhere an xmlns:AAA attribute up the tree with the right namespace URI... Ie, the whole management of namespace has to be done manually Ivan On Oct 20, 2011, at 16:52 , Henry S. Thompson wrote: > 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] ---- Ivan Herman, W3C Semantic Web Activity Lead Home: http://www.w3.org/People/Ivan/ mobile: +31-641044153 PGP Key: http://www.ivan-herman.net/pgpkey.html FOAF: http://www.ivan-herman.net/foaf.rdf
Attachments
- application/pkcs7-signature attachment: smime.p7s
Received on Thursday, 20 October 2011 15:02:38 UTC