[xmlsec] Reference

Aleksey Sanin aleksey@aleksey.com
Thu, 18 Sep 2003 12:05:31 -0700


This is a multi-part message in MIME format.
--------------050709030808070305090108
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Remove "<?xml version="1.0" ?>" and "<!DOCTYPE test [" from DTD file and 
try again
(see tests/aleksey-xmldsig-01/dtd-hmac-91.dtd file).

Aleksey

P.S. Please use mailing list for questions about xmlsec. Otherwise, I 
would have
to send you a bill for consulting work :)


Jan-Olof Andersson wrote:

>Aleksey, thanks so much for your help and your patients...
>
>Now I will write a very stupid question.. Is that available online?
>
>I tried to use the example that you sent but I get an error...
>
>The error message is:
>
>D:\Archivos de programa\GnuWin32\xmlsec\libxmlsec-1.1.1.win32\lib>sign_xml
>sign
>--pkcs12 certificado.pfx --output signed_xml.xml --dtd-file
>dtd_xml_factura.dtd
>--pwd calimaappic resum_caf_invoice_10.xml
>dtd_xml_factura.dtd:2: error: Content error in the external subset
><!DOCTYPE test [
>^
>dtd_xml_factura.dtd:2: error: Extra content at the end of the document
><!DOCTYPE test [
>^
>Error: failed to parse dtd file "dtd_xml_factura.dtd"
>Error: failed to load template "resum_caf_invoice_10.xml"
>Error: failed to sign file "resum_caf_invoice_10.xml"
>
>The  DTD that I created looks like the following:
>
><?xml version="1.0" ?>
><!DOCTYPE test [
> <!ATTLIST Documento ID ID #IMPLIED>
>]>
>
>
>
>Inside the xml document this shall relate to the <Documento ID="F15T33"> and
>the reference is <Reference URI="#Fl5T33">
>
>Thanks so much for your help!
>
>Best regards
>
>
>
>
>
>-----Original Message-----
>From: xmlsec-admin@aleksey.com [mailto:xmlsec-admin@aleksey.com]On
>Behalf Of Aleksey Sanin
>Sent: den 18 september 2003 11:46
>To: jan-olof.andersson@blcc.biz; xmlsec@aleksey.com
>Subject: Re: [xmlsec] Reference
>
>
>The FAQ has an example. Also there are a lot of examples in tests/ folder.
>
>Aleksey
>
>Jan-Olof Andersson wrote:
>
>  
>
>>Thanks Aleksey!
>>
>>I been looking at it, and I still dont get it working... Do you have any
>>    
>>
>DTD
>  
>
>>example that you know is working with the xmlsec?
>>
>>Best regards
>>
>>-----Original Message-----
>>From: xmlsec-admin@aleksey.com [mailto:xmlsec-admin@aleksey.com]On
>>Behalf Of Aleksey Sanin
>>Sent: den 16 september 2003 13:07
>>To: jan-olof.andersson@blcc.biz
>>Cc: xmlsec@aleksey.com
>>Subject: Re: [xmlsec] Reference
>>
>>
>>Read section 3.2 from the FAQ
>>   http://www.aleksey.com/xmlsec/faq.html
>>
>>Aleksey
>>
>>
>>_______________________________________________
>>xmlsec mailing list
>>xmlsec@aleksey.com
>>http://www.aleksey.com/mailman/listinfo/xmlsec
>>
>>
>>
>>    
>>
>
>_______________________________________________
>xmlsec mailing list
>xmlsec@aleksey.com
>http://www.aleksey.com/mailman/listinfo/xmlsec
>
>  
>

--------------050709030808070305090108
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Remove "&lt;?xml version="1.0" ?&gt;" and "&lt;!DOCTYPE test [" from
DTD file and try again<br>
(see tests/aleksey-xmldsig-01/dtd-hmac-91.dtd file).<br>
<br>
Aleksey<br>
<br>
P.S. Please use mailing list for questions about xmlsec. Otherwise, I
would have <br>
to send you a bill for consulting work :)<br>
<br>
<br>
Jan-Olof Andersson wrote:<br>
<blockquote type="cite"
 cite="midNPENKJNAFAOGCAEDEPEAAEODDBAA.jan-olof.andersson@blcc.biz">
  <pre wrap="">Aleksey, thanks so much for your help and your patients...

Now I will write a very stupid question.. Is that available online?

I tried to use the example that you sent but I get an error...

The error message is:

D:\Archivos de programa\GnuWin32\xmlsec\libxmlsec-1.1.1.win32\lib&gt;sign_xml
sign
--pkcs12 certificado.pfx --output signed_xml.xml --dtd-file
dtd_xml_factura.dtd
--pwd calimaappic resum_caf_invoice_10.xml
dtd_xml_factura.dtd:2: error: Content error in the external subset
&lt;!DOCTYPE test [
^
dtd_xml_factura.dtd:2: error: Extra content at the end of the document
&lt;!DOCTYPE test [
^
Error: failed to parse dtd file "dtd_xml_factura.dtd"
Error: failed to load template "resum_caf_invoice_10.xml"
Error: failed to sign file "resum_caf_invoice_10.xml"

The  DTD that I created looks like the following:

&lt;?xml version="1.0" ?&gt;
&lt;!DOCTYPE test [
 &lt;!ATTLIST Documento ID ID #IMPLIED&gt;
]&gt;



Inside the xml document this shall relate to the &lt;Documento ID="F15T33"&gt; and
the reference is &lt;Reference URI="#Fl5T33"&gt;

Thanks so much for your help!

Best regards





-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:xmlsec-admin@aleksey.com">xmlsec-admin@aleksey.com</a> [<a class="moz-txt-link-freetext" href="mailto:xmlsec-admin@aleksey.com">mailto:xmlsec-admin@aleksey.com</a>]On
Behalf Of Aleksey Sanin
Sent: den 18 september 2003 11:46
To: <a class="moz-txt-link-abbreviated" href="mailto:jan-olof.andersson@blcc.biz">jan-olof.andersson@blcc.biz</a>; <a class="moz-txt-link-abbreviated" href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a>
Subject: Re: [xmlsec] Reference


The FAQ has an example. Also there are a lot of examples in tests/ folder.

Aleksey

Jan-Olof Andersson wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Thanks Aleksey!

I been looking at it, and I still dont get it working... Do you have any
    </pre>
  </blockquote>
  <pre wrap=""><!---->DTD
  </pre>
  <blockquote type="cite">
    <pre wrap="">example that you know is working with the xmlsec?

Best regards

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:xmlsec-admin@aleksey.com">xmlsec-admin@aleksey.com</a> [<a class="moz-txt-link-freetext" href="mailto:xmlsec-admin@aleksey.com">mailto:xmlsec-admin@aleksey.com</a>]On
Behalf Of Aleksey Sanin
Sent: den 16 september 2003 13:07
To: <a class="moz-txt-link-abbreviated" href="mailto:jan-olof.andersson@blcc.biz">jan-olof.andersson@blcc.biz</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a>
Subject: Re: [xmlsec] Reference


Read section 3.2 from the FAQ
   <a class="moz-txt-link-freetext" href="http://www.aleksey.com/xmlsec/faq.html">http://www.aleksey.com/xmlsec/faq.html</a>

Aleksey


_______________________________________________
xmlsec mailing list
<a class="moz-txt-link-abbreviated" href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a>
<a class="moz-txt-link-freetext" href="http://www.aleksey.com/mailman/listinfo/xmlsec">http://www.aleksey.com/mailman/listinfo/xmlsec</a>



    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
xmlsec mailing list
<a class="moz-txt-link-abbreviated" href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a>
<a class="moz-txt-link-freetext" href="http://www.aleksey.com/mailman/listinfo/xmlsec">http://www.aleksey.com/mailman/listinfo/xmlsec</a>

  </pre>
</blockquote>
</body>
</html>

--------------050709030808070305090108--