You have an error in the DTD, the "attribute name" is missing.
<!ATTLIST Data ID ID #IMPLIED>
Aleksey
anais laporte wrote:
The command line :
C:\xmlsec\bin_verifier>xmlsec --verify --dtd-file spec.dtd test.xml
spec.dtd:1: parser error : '(' required to start ATTLIST enumeration
<!ATTLIST Data ID #IMPLIED>
^
spec.dtd:1: parser error : Content error in the external subset
<!ATTLIST Data ID #IMPLIED>
^
Error: failed to parse dtd file "spec.dtd"
Error: failed to load document "test.xml"
ERROR
SignedInfo References (ok/all): 0/0
Manifests References (ok/all): 0/0
Error: failed to verify file "test.xml"
thanks very much
Anaïs
> Date: Tue, 5 May 2009 08:44:53 -0700
> From: [email protected]
> To: [email protected]; [email protected]
> Subject: Re: [xmlsec] failed:expr=xpointer(id('D0') error when trying
to validate a signature
>
> Could you please give the complete command line and attach all
> the files?
>
> Aleksey
>
> anais laporte wrote:
> > It doesn't work, i get parser error : '<' requiered to start ATTLIST
> > enumeration.
> >
> > Thanks,
> >
> > Anaïs
> >
> > > Date: Tue, 5 May 2009 08:06:44 -0700
> > > From: [email protected]
> > > To: [email protected]
> > > Subject: Re: [xmlsec] failed:expr=xpointer(id('D0') error when
trying
> > to validate a signature
> > >
> > > Try just this
> > >
> > > <!ATTLIST Data_to_signId ID #IMPLIED>
> > >
> > > Aleksey
> > >
> > > anais laporte wrote:
> > > > I have already try but get an error.
> > > >
> > > > This is my dtd :
> > > > <!DOCTYPE test [
> > > > <!ATTLIST Data_to_signId ID #IMPLIED>
> > > > ]>
> > > >
> > > > I use the command line on windows : xmlsec --verify --dtd-file
> > file.dtd
> > > > to_sign.xml
> > > > And i get the error : parser error : content error in the external
> > subset
> > > >
> > > > thanks,
> > > >
> > > > Anaïs
> > > >
> > > > > Date: Tue, 5 May 2009 07:28:44 -0700
> > > > > From: [email protected]
> > > > > To: [email protected]
> > > > > CC: [email protected]
> > > > > Subject: Re: [xmlsec] failed:expr=xpointer(id('D0') error when
> > trying
> > > > to validate a signature
> > > > >
> > > > > It is section 3.2 :) Double check the DTD.
> > > > >
> > > > > Aleksey
> > > > >
> > > > >
> > > > > anais laporte wrote:
> > > > > > Hello,
> > > > > >
> > > > > > When i try to validate an enveloped signature, i get the
error :
> > > > > > failed:expr=xpointer(id('D0').
> > > > > > I already have seen the section 3.2 in the faq but no succed.
> > > > > >
> > > > > > My xml file looks like :
> > > > > > <firstData>
> > > > > > <secondData>...</secondData>
> > > > > > <Data_to_sign Id="D0">...</Data_to_sign>
> > > > > > <signature>...</signature>
> > > > > > </firstData>
> > > > > >
> > > > > > some idea ?
> > > > > >
> > > > > > Thanks.
> > > > > >
> > > > > > Anaïs
> > > > > >
> > > > > >
> > > > > >
> > > >
> >
------------------------------------------------------------------------
> > > > > > Découvrez toutes les possibilités de communication avec vos
proches
> > > > > > <http://www.microsoft.com/windows/windowslive/default.aspx>
> > > > > >
> > > > > >
> > > > > >
> > > >
> >
------------------------------------------------------------------------
> > > > > >
> > > > > > _______________________________________________
> > > > > > xmlsec mailing list
> > > > > > [email protected]
> > > > > > http://www.aleksey.com/mailman/listinfo/xmlsec
> > > >
> > > >
> >
------------------------------------------------------------------------
> > > > Discutez sur Messenger où que vous soyez ! Mettez Messenger sur
votre
> > > > mobile ! <http://www.messengersurvotremobile.com/>
> >
> >
------------------------------------------------------------------------
> > Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows
> > Live ? Lancez-vous !
> > <http://www.microsoft.com/windows/windowslive/default.aspx>
------------------------------------------------------------------------
Découvrez toutes les possibilités de communication avec vos proches
<http://www.microsoft.com/windows/windowslive/default.aspx>
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec