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

Again: Signing a ds:Object - what's the right XPath

From: Christian Geuer-Pollmann <geuer-pollmann@nue.et-inf.uni-siegen.de>
Date: Thu, 11 Oct 2001 12:57:59 +0200
To: w3c-ietf-xmldsig@w3.org
Message-id: <2077699801.1002805079@pinkpanther>
Hi all,

let me ask again. What's the right XPath to completely identify a subtree 
based on the top-level element of the subtree. Using the XPath


I can identify the first ds:Object in my ds:Signature. But for tor xpath 
ds:Transform to work properly, I have to modify this xpath that it doen't 
return a nodeset but evaluates to true for all descendant-or-self of this 
ds:Object. I tried

ancestor-or-self::node() =

but this XPath fails to catch the Attributes inside e.g. the ds:Object. 
What mistake do I make?


> <ds:Signature>
> ...
> <ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
> <ds:XPath>
>  ancestor-or-self::node()
>            =
>  here()/ancestor::ds:Signature[1]/ds:Object[1]
> </ds:XPath>
> </ds:Transform>
> ...
> <ds:Object Id="object-1">some text</ds:Object>
> </ds:Signature>
Received on Thursday, 11 October 2001 07:36:38 UTC

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