Re: Can't locate object method "load_xml" via package "XML::LibXML

Jakub Jezek <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
Michael Kröll wrote:
> Jakub Jezek wrote:
>  
>> Could I only rewrite LibXML.pm with newer one? Or updating is more 
>> difficult?
>>     
>
> You really should update the whole XML::LibXML distribution. If you're
> using Ubuntu (even lucid) you need to backport or install it from CPAN
> since 1.70 is not yet part of the package repositories there.
>
> Cheers,
> Michael
>
>   
In Ubuntu 8.04 is libxslt 1.62 a libxml 1.63. In backports are no newer 
candidates.

So I tried to do it in old style:
=================================================
use strict;
use warnings;
use diagnostics;
use XML::LibXSLT;
use XML::LibXML;

my $parser = XML::LibXML->new();
my $xslt = XML::LibXSLT->new();

my $source = $parser->parse_file('com.redhat.rhsa-20091463.xml');
my $style_doc = $parser->parse_file('test4.xsl');

my $stylesheet = $xslt->parse_stylesheet($style_doc);
my $results = $stylesheet->transform($source);
print $stylesheet->output_string($results);
=================================================

And it doesn't generate any output. But for used XSLT it should. It 
prints nothing.


J. J.

_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: Can't locate object method \ (message/rfc822, 1.9 KB) - not displayed
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.