Subject: | usage more explicit? |
Date: | Sat, 21 Aug 2010 09:23:39 -0400 |
To: | bug-xml-saxon-xslt2 <bug-xml-saxon-xslt2 [...] rt.cpan.org> |
From: | Maurice Mengel <mauricemengel [...] gmail.com> |
Hi there,
i got my first transformation running. Great module! I'm using v0.033 BTW.
Maybe it would be good to add a little to the synopsis to make it more intuitive
use XML::Saxon::XSLT2;
#make sure to open filehandle in right encoding
open( my $input, '<:encoding(UTF-8)', 'path/to/xml' ) or die $!;
open( my $xslt, '<:encoding(UTF-8)', 'path/to/xslt' ) or die $!;
my $trans = XML::Saxon::XSLT2->new($xslt, $baseurl);
print $trans->transform($input);
Maurice