On Wed, Feb 20, 2002 at 06:30:55PM +0100, Melvyn Sopacua wrote: > Robin Berjon said at 18:10 20-2-2002: > > >On Wednesday 20 February 2002 18:05, Melvyn Sopacua wrote: > > > Somebody at a forum of ours, suggested it should be possible > > > to pass notes between mod_perl and mod_php, thus making it > > > possible to combine AxKit with PHP. > > > >I guess that using $r->notes() you could stick or retrieve something between > >several apache modules. However, I don't know if you'll be able to have both > >PHP and AxKit handle the request as both will try to grab hold of the content > >handling slot. > > Hmm. > The annoying part for me, is: > what would be the configuration? > > PHP is handled via a mime-type mapping. > So - would something like this be even possible: > > <Files "*.pxml"> > SetHandler AxKit > AxAddTypeMap text/xsl Apache::AxKit::Language::LibXSLT > #???????? > AxAddTypeMap application/x-httpd-php mod_php > </Files> > > What would be the goal, in this conversion, would broadly ammount to: > 1) Apply an XML shell around legacy content > 2) Write a stylesheet which leaves the '<?php processing instructions' alone > and which marks them as CDATA. > 3) Pass the result to php > > The '<?php processing instructions' is probably a problem in itself, but I'll > leave that to when I'm trying to bring this into practice. > > Just want to know, what is possible. >
Just as a message from a bystander (not using AxKit): what you want is to pass the output of one handler to another handler. Unless you feel pretty competent with the apache internals that's not really possible in the 1.x version of the server (some modules actually need to do this (mod_gzip, mod_ssl) but it's pretty ugly and often doesn't interact very well). Ralf Mattes > > Best regards, > > Melvyn Sopacua > WebMaster IDG.nl > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > If it applies, where it applies - this email is a personal > contribution and does not reflect the views of my employer > IDG.nl. > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
