W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > July to September 2001

RE: Section

From: Joseph M. Reagle Jr. <reagle@w3.org>
Date: Fri, 27 Jul 2001 18:08:43 -0400
Message-Id: <>
To: "John Boyer" <JBoyer@PureEdge.com>
Cc: "Dournaee, Blake" <bdournaee@rsasecurity.com>, "Donald E. Eastlake 3rd" <dee3@torque.pothole.com>, <w3c-ietf-xmldsig@w3.org>, "Shi, Angela" <ashi@rsasecurity.com>
At 17:36 7/27/2001, John Boyer wrote:
>If C14N is called with a node-set, then it processes the node-set.  Only
>if it is called with an octet stream does it behave as if running an
>XPath that eliminates comments.  Therefore to retain the default
>behavior of stripping comments, we defined the processing model for
>References as stripping the comments out.

I propose adding text ([INS]) to the spec to make this more clear:

$Revision: 1.104 $ on $Date: 2001/07/27 22:07:47 $

> Same-Document URI-References
>  5. if the URI is not a full XPointer, then delete all comment nodes
>The last step is performed for null URIs, barename XPointers and child 
>XPointers. [INS:It's necessary because when [XML-C14N] is passed a 
>node-set, it
>processes the node-set as is: with or without comments. Only when it's called
>with an octet stream does it invoke it's own XPath expressions (default or
>without comments). Therefore to retain the default behavior of stripping
>comments when passed a nodeset, they are removed in the last step if the 
>URI is
>not a full XPointer. :INS]To retain comments while selecting an element by an
>identifier ID, use the following full XPointer: URI='#xpointer(id('ID'))'. To
>retain comments while selecting the entire document, use the following full
>XPointer: URI='#xpointer(/)'. This XPointer contains a simple XPath 
>that includes the root node, which the second to last step above replaces 
>all nodes of the parse tree (all descendants, plus all attributes, plus all
>namespaces nodes).

Joseph Reagle Jr.                 http://www.w3.org/People/Reagle/
W3C Policy Analyst                mailto:reagle@w3.org
IETF/W3C XML-Signature Co-Chair   http://www.w3.org/Signature
W3C XML Encryption Chair          http://www.w3.org/Encryption/2001/
Received on Friday, 27 July 2001 18:09:01 UTC

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