LibXSLT crashes

Benjamin Habegger <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
Hello,

I am facing a problem with ActivePerl and LibXSLT. Perl dies with a segv 
on even a script as simple as the joined one (a very basic 
transformation on a very basic document). I suspect it to be an 
environment issue but have no idea where to look.

I am running the following environment:
Windows Vista Family Edition SP2
ActivePerl 5.10.1 build 1006
XML-LibXSLT-1.63
XML-LibXML-1.66
XML-LibXML-Common-0.13
gcc environment 3.4.5 (mingw-vista special r3)

The C libraries used are thoses downloaded with the perl Packages.

The crash occurs at the end of the script apparently at cleanup.

Any ideas how I could get this working ?

Thanks in advance
Benjamin

_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
xslt.pl (text/plain, 565 B)
use XML::LibXML;
use XML::LibXSLT;

my $parser = XML::LibXML->new();
my $xslt = XML::LibXSLT->new();
my $style_doc = $parser->parse_string(<<END);
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/"><message>Hello</message></xsl:template>
</xsl:stylesheet>
END
my $stylesheet = $xslt->parse_stylesheet($style_doc);

my $source = $parser->parse_string(<<END);
<?xml version="1.0"?><dummy />
END
my $results = $stylesheet->transform($source);
print $stylesheet->output_string($results);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.