in reply to Re^2: Xml::Xslt Examples
in thread Xml::Xslt Examples

hi

If you already installed LibXML and LibXSLT modules, try this

use strict; use XML::LibXML; use XML::LibXSLT; my $parse = XML::LibXML->new(); my $xslt = XML::LibXSLT->new(); my $xml = $parse->parse_file("test.xml"); my $input = $parse->parse_file ("test.xslt"); my $xslt = $xslt->parse_stylesheet($input); my $result = $xslt->transform($xml); my $html = $xslt->output_string($result); open (REPORT, "> test.html") or die "Can't open test.html $!\n"; print REPORT $html; close (REPORT);

regards
Balaji. M