in reply to XML::Parser trouble
If you want to see whether it's going to STDERR, one thing you can do on *nix is to pipe the contents of STDERR out to a file with perl xmlparserscript.pl 2> errors.txt. This should be of general use.
But if you're getting an error, chances are the XML is not well-formed. I'm not *certain* of this, but the processing instruction for stylesheets is not xml:stylesheet but xml-stylesheet.
Update I tried it with a little XML::Sablotron script (Sablotron is an XSLT processor which uses expat as a parser), and I got an error with <?xml:stylesheet ...> and not with <?xml-stylesheet ...>, so that's probably it.
HTH!
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
|
|---|