[xmlsec] Using XPath
Aleksey Sanin
aleksey@aleksey.com
Fri, 01 Nov 2002 09:46:02 -0800
Please take a look at the spec:
http://www.w3.org/TR/xpath#dt-expanded-name
The Signature element has an extended name (<namespace>, Signature).
In order to select it, you need to do something like this:
ancestor-or-self::/Request/dsig:Signature
and also declare xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" in your
document.
Aleksey
Gregor Ibic wrote:
>Cause in the existing app the old signature (non standard) is an element in
>xml document and I want to keep it this way, so Enveloped is the choice.
>
>But also
>ancestor-or-self::Request/Signature
>
>gives me empty set (and all permutation that I can think on). Which is the
>proper XPath selection statement?
>
>Regards,
>Gregor
>
>_______________________________________________
>xmlsec mailing list
>xmlsec@aleksey.com
>http://www.aleksey.com/mailman/listinfo/xmlsec
>
>