in reply to XML::XSLT problem
You do not want to read the contents of the XML file, just to apply the XSLT to it. Simply pass the name of the file to the transform method: (snippet taken from the man page of XML::XSLT):
This has the beneficial side-effect, that you will (hoepfully) get more descriptive error messages...use XML::XSLT; my $xslt = XML::XSLT->new ($xsl, warnings => 1); $xslt->transform ($xmlfile); print $xslt->toString;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: XML::XSLT problem
by bosshoff (Novice) on Apr 24, 2005 at 17:08 UTC | |
by rg0now (Chaplain) on Apr 24, 2005 at 17:53 UTC | |
by bosshoff (Novice) on Apr 24, 2005 at 18:27 UTC | |
by rg0now (Chaplain) on Apr 24, 2005 at 21:45 UTC | |
by bosshoff (Novice) on Apr 24, 2005 at 22:28 UTC | |
|
In Section
Seekers of Perl Wisdom