XML::Filter::XSLT - XSLT as a SAX Filter
use XML::SAX::ParserFactory; use XML::Filter::XSLT; use XML::SAX::Writer; my $writer = XML::SAX::Writer->new(); my $filter = XML::Filter::XSLT->new(Handler => $writer); my $parser = XML::SAX::ParserFactory->parser( Handler => $filter); $filter->set_stylesheet_uri("foo.xsl"); $parser->parse_uri("foo.xml");
To install XML::Filter::XSLT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Filter::XSLT
CPAN shell
perl -MCPAN -e shell install XML::Filter::XSLT
For more information on module installation, please visit the detailed CPAN module installation guide.