in reply to Re^2: Using XML::XSLT to convert XML to CSV
in thread Using XML::XSLT to convert XML to CSV
Can't help you much further than that, though.use strict; use XML::XSLT; my $xmlFilename = '/home/joost/input.xml'; my $xslFilename = '/home/joost/input.xsl'; (my $outFilename = $xmlFilename) =~ s/\.xml$/\.csv/i; my $xslt = XML::XSLT->new($xslFilename, warnings => 1); $xslt->transform($xmlFilename); print $xslt->toString;
update: did you update the XML modules, or where they already at the latest version?
You can check by doing
and similar for XML::Parserperl -MXML::XSLT -e'print "$XML::XSLT::VERSION\n"'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Using XML::XSLT to convert XML to CSV
by Photius (Sexton) on Aug 27, 2007 at 19:50 UTC | |
by Joost (Canon) on Aug 27, 2007 at 19:53 UTC | |
by Photius (Sexton) on Aug 27, 2007 at 19:54 UTC | |
by Joost (Canon) on Aug 27, 2007 at 20:05 UTC |