W3C home > Mailing lists > Public > www-xml-xinclude-comments@w3.org > December 2004

Re: [tagsoup-friends] getElementById

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Sun, 05 Dec 2004 05:33:27 -0500
Message-ID: <41B2E3F7.6030801@metalab.unc.edu>
To: tagsoup-friends@yahoogroups.com, www-xml-xinclude-comments@w3.org

John Cowan wrote:


> That's definitely not the case: TagSoup reports id attributes on all
> elements as being of type ID.  So the problem is downstream of TagSoup,
> and I don't know where.  My guess would be that the implementation of
> identity transforms does not preserve the IDness of @id.

I recently discovered that almost everything to do with IDs is broken by 
design in DOM2. (Why does that not surprise me?) The practical impact is 
that it is impossible to implement a fully-conformant XInclude processor 
  in pure DOM2. You have to use implementation-dependent methods or 
leave out support for XPointers that depend on ID-type attributes.

-- 
Elliotte Rusty Harold  elharo@metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
Received on Sunday, 5 December 2004 10:33:36 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Thursday, 9 June 2005 12:16:10 GMT