bosshoff has asked for the wisdom of the Perl Monks concerning the following question:
Which produces the following error when run:use strict; use XML::XSLT; print "Content-type: text/html\n\n"; open (XSL, "blog.xsl"); my $xslFile = ""; while(<XSL>) { $xslFile .= $_; } close(XSL); #my $xslFile = get("blog.xsl") || die qq(No feed "blog.xsl": $!); my $xslt = XML::XSLT->new ($xslFile); #, warnings => 1, debug => 1) or + die qq(Something Happened); my $xmlFile = ""; open (XML, "posts.xml"); while(<XML>) { $xmlFile .= $_; } close(XML); #print $xslt->serve $xmlFile; $xslt->transform ($xmlFile); print $xslt->toString; $xslt->dispose();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: XML::XSLT problem
by rg0now (Chaplain) on Apr 24, 2005 at 16:13 UTC | |
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 | |
| |
Re: XML::XSLT problem
by friedo (Prior) on Apr 24, 2005 at 15:51 UTC |