another untested hook nightmare: c14n and xml:id

Further to my comment...

  pls warn against untested hooks
  http://lists.w3.org/Archives/Public/www-qa/2005Feb/0015.html

The c14n spec had a subtle hook/extensibility point...

   The processing of an element node E MUST be modified slightly when
   an XPath node-set is given as input and the element's parent is
   omitted from the node-set. ... All element nodes along E's ancestor
   axis are examined for nearest occurrences of attributes in the xml
   namespace ... From this list of attributes, remove any that are in
   E's attribute axis (whether or not they are in the node-set). Then,
   lexicographically merge this attribute list with the nodes of E's
   attribute axis that are in the node-set. the attribute nodes in
   this merged attribute list.
  -- http://www.w3.org/TR/2001/REC-xml-c14n-20010315

and it's interacting badly with xml:id.

Discussion includes...

"A test suite that did test document subset canonicalization would be 
very helpful. It's a shame that C14N and exclusive C4N were allowed to 
get out the door without a normative test suite. Later efforts at the 
W3C seem to be doing better with this."
 -- http://lists.w3.org/Archives/Public/www-tag/2005Feb/0084.html

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E

Received on Monday, 14 February 2005 18:17:22 UTC