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

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

From: Christian Geuer-Pollmann <geuer-pollmann@nue.et-inf.uni-siegen.de>
Date: Fri, 12 Oct 2001 16:29:35 +0200
To: w3c-ietf-xmldsig@w3.org
Message-id: <2176795965.1002904175@pinkpanther>
Hi all,

found the problem myself...

<ds:XPath>
count(
 ancestor-or-self::ds:Object
 |
 here()/ancestor::ds:Signature[1]/child::ds:Object[1]
) &lt;= count(
 ancestor-or-self::ds:Object
)
</ds:XPath>

was my solution



--On Donnerstag, 11. Oktober 2001 12:57 +0200 Christian Geuer-Pollmann 
<geuer-pollmann@nue.et-inf.uni-siegen.de> wrote:

> 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
>
> here()/ancestor::ds:Signature[1]/ds:Object[1]
>
> 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() =
> here()/ancestor::ds:Signature[1]/ds:Object[1]
>
> but this XPath fails to catch the Attributes inside e.g. the ds:Object.
> What mistake do I make?
>
> Christian
Received on Friday, 12 October 2001 10:27:25 GMT

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