W3C home > Mailing lists > Public > www-qa@w3.org > February 2005

another untested hook nightmare: c14n and xml:id

From: Dan Connolly <connolly@w3.org>
Date: Mon, 14 Feb 2005 12:17:21 -0600
To: www-qa@w3.org
Message-Id: <1108405041.4991.350.camel@localhost>

Further to my comment...

  pls warn against untested hooks

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:40:36 UTC