|
| I am trying to use mod_ext_filter to filter xml files through a perl
script. (See previoius post on my xml problem). It nearly works, but I
get extra 200 and 500 messages at the end of the output. That is,
sometimes it works, sometimes it fails, but always there is an additionl
message telling me aoubt a server misconfiguration.
I am running a newly compiled Apache 2.0.48 on Redhat 9.
Here is the appropriate section from httpd.conf:
ExtFilterDefine xslt mode=output intype=text/xml outtype=text/html
cmd=/var/www/perl/xslt.pl
#above on one lie, of course
<Files *.xml>
SetOutputFilter xslt;INCLUDES
ExtFilterOptions DebugLevel=1
</Files>
And here is my PERL file:
#!/usr/bin/perl -w
$q=$ENV{'SCRIPT_FILENAME'};
$result=`xsltproc $q`;
$error=$?>>8;
if($error==0)
{ print $result;
}
Not that the PERL script matters. I can run any program as a filter and
still get the same error. With or without the INCDLUDES part at the end.
Any ideas?
Thanks,
Mark
|
|