[xmlsec] Using XPath
Aleksey Sanin
aleksey at aleksey.com
Fri Nov 1 08:24:01 PST 2002
The "dsig" namespace used in the XPath is unknown in the document.
BTW, why you do not want to use Enveloped transform instead????
Aleksey
Gregor Ibic wrote:
>How can I apply this path to the xml doc? I always get an Expression Error.
>
>count(ancestor-or-self::dsig:Signature | here()/ancestor::dsig:Signature[1])
>
>
>>count(ancestor-or-self::dsig:Signature)
>>
>>
>
>or
>
>not(ancestor-or-self::dsig:Signature)
>
>or
>
>not(ancestor-or-self::Signature)
>
>**************************************
><?xml version="1.0" encoding="UTF-8" ?>
><Request>
><DataObject Id="object">abcšd</DataObject>
><Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
> <SignedInfo>
> <CanonicalizationMethod
>Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
> <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"
>/>
> <Reference URI="#object">
> <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
> <DigestValue></DigestValue>
> </Reference>
> </SignedInfo>
> <SignatureValue>
> </SignatureValue>
> <KeyInfo>
> <KeyName></KeyName>
> </KeyInfo>
></Signature>
></Request>
>
>**************************************
>
>Regards,
>Gregor
>
>_______________________________________________
>xmlsec mailing list
>xmlsec at aleksey.com
>http://www.aleksey.com/mailman/listinfo/xmlsec
>
>
More information about the xmlsec
mailing list