[xmlsec] Using XPath

Aleksey Sanin aleksey at aleksey.com
Fri Nov 1 09:46:02 PST 2002


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 at aleksey.com
>http://www.aleksey.com/mailman/listinfo/xmlsec
>  
>





More information about the xmlsec mailing list