<div dir="ltr">Ok. Thanks</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 27, 2013 at 6:54 PM, Aleksey Sanin <span dir="ltr"><<a href="mailto:aleksey@aleksey.com" target="_blank">aleksey@aleksey.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href="http://www.w3.org/TR/xml-c14n#Terminology" target="_blank">http://www.w3.org/TR/xml-c14n#Terminology</a><br>
<br>
"Line breaks normalized to #xA on input, before parsing"<br>
<br>
Which is exactly what is happening<br>
<div class="im"><br>
file.xml<br>
<?xml version="1.0"?>CR LF<br>
<br>
</div><div class="im">result.xml<br>
<carro id="carro101">LF<br>
<br>
</div>Best,<br>
<br>
Aleksey<br>
<div class="im"><br>
On 9/27/13 2:41 PM, Alexwell Sandro wrote:<br>
> Hi, I am using [1] xmlSecTransformCtxXmlExecute to canonicalize a<br>
> xmlSecNodeSet with exclc14n "xmlSecTransformExclC14NId".<br>
><br>
</div>> *The file (file.xml):*<br>
<div class="im">> <?xml version="1.0"?><br>
> <catalog><br>
> <carro id="carro101"><br>
> <author>Alex Sandro</author><br>
> <name>Ferrari</name><br>
> <price>44.95</price><br>
> <publish_date>2099-05-16</publish_date><br>
> <description>Simple XML file.</description><br>
> </carro><br>
> </catalog><br>
><br>
</div>> *After applying the transform:*<br>
<div class="im">> <carro id="carro101"><br>
> <author>Alex Sandro</author><br>
> <name>Ferrari</name><br>
> <price>44.95</price><br>
> <publish_date>2099-05-16</publish_date><br>
> <description>Simple XML file.</description><br>
> </carro><br>
><br>
> The transform did not remove the break line.<br>
><br>
</div>> *I did apply the transform again over 'result'*:<br>
<div class="im">> <author>Alex<br>
> Sandro</author><name>Ferrari</name><price>44.95</price><publish_date>2099-05-16</publish_date><description>Simple<br>
> XML file.</description><br>
><br>
</div>> *Documents attached:*<br>
<div class="im">> file.xml - file to transform<br>
> result.xml - file after transform<br>
> result_from_result.xml - file result.xml after transform<br>
><br>
</div>> *Using notpad++ to show break lines (View/Show Symbol/Show End of Line)*<br>
> _file.xml_<br>
<div class="im">> <?xml version="1.0"?>CR LF<br>
> <catalog>CR LF<br>
> ...<br>
><br>
</div>> _result.xml_<br>
<div class="im">> <carro id="carro101">LF<br>
> <author>Alex Sandro</author>LF<br>
> ...<br>
><br>
</div>> *How to fix this problem?*<br>
<div class="im">><br>
> My configuration:<br>
> Windows 7, Visual Studio 2010, xmlsec 1.2.19.<br>
> xmlsec linked to libiconv-1.9.2, libxml2-2.9.1, libxslt-1.1.28<br>
><br>
><br>
</div>> _______________________________________________<br>
> xmlsec mailing list<br>
> <a href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a><br>
> <a href="http://www.aleksey.com/mailman/listinfo/xmlsec" target="_blank">http://www.aleksey.com/mailman/listinfo/xmlsec</a><br>
><br>
</blockquote></div><br></div>