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?
In reply to Re^5: Conversion of Files Using XSLT
by Corion
in thread Conversion of Files Using XSLT
by Chris Daniel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |