I'm so confused... I can't get my PerlHandler to work. It works sort of
fine as a PerlFixupHandler - only if I return "OK" from that it then
appends the entire file again to the end :(
This is mod_perl 1.22, and it's a .htaccess file I'm trying to define it
in. Here's the file:
__BEGIN__
DirectoryIndex index.xml index.html
# I added this but it made no difference
Options +ExecCGI
# this is required to set the MIME type.
PerlTypeHandler +Apache::MimeXML
SetHandler perl-script
# offending line!!!
PerlFixupHandler Apache::XMLStylesheet
PerlSetVar StylesheetMap "notxslt => Apache::XPath::NotXSLT"
__END__
When I change the "offending line" to:
PerlHandler Apache::XMLStylesheet
I just get the default handler - i.e. it gives me the raw index.xml file,
rather than processing it. I have no idea what's going on here... Also, I
can't seem to push_handlers(PerlHandler => ...) either - that just runs
the default handler as well.
What's strange about this, is on the same server I have a couple of
modules working just fine as a PerlHandler, and even in a .htaccess file.
The only thing I can think of, is that Apache::MimeXML is somehow stopping
the PerlHandler phase from being executed. Can it do that (but still allow
the PerlFixupHandler phase to execute)???
--
<Matt/>
Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org