Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Xml::Xslt Examples

by msbalaji (Chaplain)
on Jan 08, 2008 at 04:38 UTC ( [id://661003]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://661003]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2025-11-14 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (70 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.