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

AW: Proposed processing model for Reference and Transforms

From: Gregor Karlinger <gregor.karlinger@iaik.at>
Date: Wed, 23 Aug 2000 10:17:01 +0200
To: "John Boyer" <jboyer@PureEdge.com>, "XML DSig" <w3c-ietf-xmldsig@w3.org>
Cc: <jboyer@csr.csc.UVic.CA>
Message-ID: <NDBBIMACDKCOPBLEJCCDAEOFCJAA.gregor.karlinger@iaik.at>
Hi John,

please see my comments below.

2) Removed requirement for barename XPointer support from external
resources.  We nevery really had this support, we just really haven't
acknowledged it before.  Also, I glommed onto the definition of
same-document reference from RFC2396 as the way to distinguish when we do
require barename XPointer support.  Same-document reference covers the null
URI plus URIs that essentially start with a #.

This is fine, I also interpreted the draft in this way.

3) Added idea that same-document URIs in the Reference would result in a
location-set, then defined how to boil the location-set down to an XPath
node-set (which is pretty easy considering an XPointer location set is a
node-set except for the addition of point and range ndoes).  BTW, the new
text is careful to say 'XPath node-set (or sufficiently functional
alternative)' or words to that effect throughout the document.

As Kent I cannot see a good reason for introducing XPointer features for
same-document URIs. Why should they result in a location-set, if they are
then converted into a XPath node-set again.

I suggest to do the following:

* If the same-document URI is null, then the result of dereferencing the URI
is a XPath node-set covering all nodes of the document, in which the
signature is embedded.

* If the same-document URI is a reference (i. e. "#xxxx"), the reference
part (i. e. "xxxx") is interpreted as a the value of a XPath id-expression,
i. e. the XPath node-set as computed for a null URI forms the input for an
XPath transform "id(xxxx)".

7) Changed XPath so that it iterates on all nodes in a full node-set rather
than simply setting the context node to be the document root.  This was
necessary to the new transform processing model because the output is
expected to be a full node-set (minus a few carefully omitted elements), so
XPaths chained together (or an XPath after an enveloped signature transform)
needed to take full node-sets as input.  However, the result is quite lovely
in that the required XPath expressions are simpler and almost always
identical to the expressions one would write for an XSLT template match.

In your proposal you write that the result of applying the XPath expression
is converted into a boolean. How can this be achieved?

 8) I now distinguish between Canonical XML and Canonical XML with Comments.
This was really quite necessary to get everything to work and keep all of
the features we used to have.  Canonical XML with Comments is recommended,
not required.  As well, it seemed like it wouldn't hurt anything because
Minimal canonicalization would be quite difficult if comments had to be

Why do you think is this necessary? The proposal reads quite complicated due
to this distinction.

 Regards, Gregor
Gregor Karlinger
Phone +43 316 873 5541
Institute for Applied Information Processing and Communications
Received on Wednesday, 23 August 2000 04:20:59 UTC

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