Subject: | LibXML parse_string interferes with LibXSLT transform_file |
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.