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

Re: XPath Serialization

From: TAMURA Kent <kent@trl.ibm.co.jp>
Date: Thu, 25 May 2000 17:01:39 +0900
Message-Id: <200005250801.RAA17092@ns.trl.ibm.com>
To: "IETF/W3C XML-DSig WG" <w3c-ietf-xmldsig@w3.org>

In message "XPath Serialization"
    on 00/05/23, "John Boyer" <jboyer@PureEdge.com> writes:
> 5) There was some confusion about how to process the node-set.  I fixed this
> by commenting that nodes are not processed more than once.  As part of the
> processing of an element E, its namespace declarations, attributes, and
> descendants are processed, so they are not visited again when E is finished
> processing.

I misunderstood as all descendants were rendered ;-)

XPath serialization is used to serialize an element pointed
"#id-name" (in 4.3.3 the third paragraph.)  So, the following
dsig:Reference element digests only '<purchase xmlns=""></purchase>'.
Is this right?


<SignedPurchase>
  <purchase id="ORDER1">
    <item>ThinkPad</item>
    <price>195.00$</price>
  </purchase>

  <dsig:Signature xmlns:dsig="...">
    ....
  <dsig:Reference URI="#ORDER1">
    <dsig:DigestMethod ..../>
    <dsig:DigestValue>...</dsig:DigestValue>
  </dsig:Reference>
   ...
  </dsig:Signature>
</purchase>

-- 
TAMURA Kent @ Tokyo Research Laboratory, IBM
Received on Thursday, 25 May 2000 04:02:19 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.29 : Thursday, 13 January 2005 12:10:09 GMT