Skip Menu |
 

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 6160
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: josh [...] xmlteam.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.58
Fixed in: (no value)



Subject: LibXML parse_string interferes with LibXSLT transform_file
Download (untitled) / with headers
text/plain 718b
When the following perl script is run with a good $xml_file and an $xsl_file that causes transform warnings, $stylesheet->transform_file throws an exception and therefore does not return a result. When $parser->parse_string("<a/>"); is commented out, warnings are displayed but the file is successfully processed: use XML::LibXSLT; use XML::LibXML; my $parser = new XML::LibXML; $parser->parse_string("<a/>"); my ($xml_file, $xsl_file) = @ARGV; my $xslt = XML::LibXSLT->new(); my $stylesheet = $xslt->parse_stylesheet_file($xsl_file); my $result = $stylesheet->transform_file($xml_file); I'm running WindowsXP Professional Service Pack 1, activestate perl 5.8.3, build 809. XML-LibXML v. 1.58, XML-LibXSLT v. 1.57.
Download (untitled) / with headers
text/plain 269b
I cannot reproduce this behavior with current CVS LibXML and LibXSLT and recent versions of libxml2/libxslt. Please, if you can confirm that the bug is still present, reopen the bug, this time providing also samples of your xml file and xslt stylesheet to test with.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.