Re: [xml] Why does XML::LibXSLT (= the Perl 5 / CPAN wrappers for libxslt) Fails a Basic Test on some BSD and other systems?

On Fri, Feb 14, 2014 at 05:25:40PM +0100, Nick Wellnhofer wrote:
On 14/02/2014 15:23, Yura wrote:

I tried investigate this bug and as far I can see problem in a different behavior of the function 
xmlNodeGetSpacePreserve from libxml2.

Good catch. The change you mentioned above made libxslt actually do
the wrong thing and strip the text node. The relevant code is here:

xmlNodeGetSpacePreserve is called with a text node and consequently
returns -1 after the change. The relevant commit to libxml2 is
"Adding various checks on node type though the API":

This commit first appears in libxml2 version 2.9.0. I just committed
a fix to libxslt to adjust for this change:

  thanks Nick :-)


Daniel Veillard      | Open Source and Standards, Red Hat
veillard redhat com  | libxml Gnome XML XSLT toolkit | virtualization library

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]