Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: Conversion of Files Using XSLT

by Corion (Patriarch)
on Dec 14, 2016 at 10:24 UTC ( [id://1177786]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Conversion of Files Using XSLT
in thread Conversion of Files Using XSLT

Looking at the SYNOPSIS section of XML::XSLT, I see the following code:

use XML::XSLT; my $xslt = XML::XSLT->new ($xsl, warnings => 1); $xslt->transform ($xmlfile); print $xslt->toString; $xslt->dispose();

How does that code fail for you or where do you have problems adapting it to your use case?

Looking at the SYNOPSIS section of XML::LibXSLT, I see the following code:

use XML::LibXSLT; use XML::LibXML; my $xslt = XML::LibXSLT->new(); my $source = XML::LibXML->load_xml(location => 'foo.xml'); my $style_doc = XML::LibXML->load_xml(location=>'bar.xsl', no_cdata= +>1); my $stylesheet = $xslt->parse_stylesheet($style_doc); my $results = $stylesheet->transform($source); print $stylesheet->output_as_bytes($results);

How does that code fail for you or where do you have problems adapting it to your use case?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found