RE: Section

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.       
W3C Policy Analyst      
IETF/W3C XML-Signature Co-Chair
W3C XML Encryption Chair

Received on Friday, 27 July 2001 18:09:01 UTC