in reply to Re: XSLT to HTML/XHTML
in thread XSLT to HTML/XHTML
Thanks!! Now I dont get any error..
But now i tried to print it to an output file like:But when i open that HTML file i get output as XML::XSLT=HASH(0x248bdc)use XML::XSLT; my $xsl="main.xsl"; my $xmlfile="main.xml"; my $xslt = XML::XSLT->new ($xsl, warnings => 1); $xslt->transform ($xmlfile); print $xslt->toString; ########### $main="main"; open (INF, ">$main.html")||warn ("Can not create file"); print INF $xslt; close INF; ############ $xslt->dispose();
How can i print data to output file
I tried installing XML::LibXSLT, however it is not installing on my system (version 5.12.2)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XSLT to HTML/XHTML
by duyet (Friar) on Aug 05, 2011 at 10:17 UTC |