[xmlsec] selecting strart node from command line
Jan-Olof Andersson
jan-olof.andersson at blcc.biz
Wed Sep 24 14:26:10 PDT 2003
You are correct!
;-)))) I did not define the dsig... Now I am getting closer!
Best regards
-----Original Message-----
From: xmlsec-admin at aleksey.com [mailto:xmlsec-admin at aleksey.com]On
Behalf Of Aleksey Sanin
Sent: den 24 september 2003 15:01
To: jan-olof.andersson at blcc.biz; xmlsec at aleksey.com
Subject: [xmlsec] selecting strart node from command line
Your XPath expression have to select a single start node. The error
tells you that
the xpath expressiong you have used selected multiple or no nodes at
all. In your case
I would *guess* that you got no nodes because you did not specify namespaces
(and /dsig:Signature and /Signature xpath expression select different
nodes). Also
please note that for signatures, start node is expected to be
<dsig:Signature/> node.
BTW, there is a good XPath tutorial with a lot of examples:
http://www.zvon.org
You might want to look at it if you need to quickly find an Xpath expression
for your needs.
Aleksey
Jan-Olof Andersson wrote:
>Let me explain a little bit more...
>
>I want to make the signing to start later in the document with the signing.
>So I try to use xpath. But it always complains that I give the command in a
>wrong way...
>
>How should I write?
>
>Best regards
>
>
D:\Archivos de programa\GnuWin32\xmlsec\libxmlsec-1.1.1.win32\lib>xmlsec
sign
--pkcs12 certificado.pfx --output signed_xml.xml --pwd xxxxx --node-xpath
/EnvioDTE/Signature/SignedInfo resum_caf_invoice_10.xml
Error: xpath expression evaluation does not return a single node as expected
Error: failed to load template "resum_caf_invoice_10.xml"
Error: failed to sign file "resum_caf_invoice_10.xml"
_______________________________________________
xmlsec mailing list
xmlsec at aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec
More information about the xmlsec
mailing list