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

Re: Clarification

From: Christian Geuer-Pollmann <geuer-pollmann@nue.et-inf.uni-siegen.de>
Date: Wed, 14 Aug 2002 21:25:58 +0200
To: "Dournaee, Blake" <bdournaee@rsasecurity.com>, w3c-ietf-xmldsig@w3.org
Message-ID: <49296414.1029360358@crypto>

--On Mittwoch, 14. August 2002 10:46 -0700 "Dournaee, Blake" <bdournaee@rsasecurity.com> wrote:

> Hello All,
> I came across something that wasn't quite clear to me in the XML Signature
> Recommendation.
> Consider Section in http://www.w3.org/TR/xmldsig-core/
> Next consider Case 1 and Case 2 below:
> Case 1: <Reference URI="#frag1">....</Reference>

URI="#frag1": The nodes under the element with ID-type attr with value "frag1" without comments

<Object Id="frag1"> <hello> world </hello>  </Object>

> Case 2: <Reference URI="xpointer(id('frag1')"> ..... </Reference>
                          ^ '#' missing

URI="#xpointer(id('frag1')": The nodes under the element with ID-type attr with value "frag1" with comments

<Object Id="frag1"> <hello> world </hello> <!-- today is cool --> </Object>

> Consider:
> <Object Id="frag1"> <hello> world </hello> <!-- today is cool --> </Object>
> The spec clearly says that Case 1 should Reference a node set without
> comments, but for Case 2, it does not clearly say that comments should be
> preserved or stripped (although comment preservation is implied).
> Is this clear somewhere else, or am I missing something? states:

   "if the URI is not a full XPointer, then delete all
    comment nodes"


   "Therefore to retain the default behavior of stripping
    comments when passed a node-set, they are removed in
    the last step if the URI is not a full XPointer."

So *if* it's an XPointer, comments are not removed.

Received on Wednesday, 14 August 2002 15:22:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:10:10 UTC