As I understand it, you can't do it, because apache won't filter the
output of one handler to another...unless they're both perl and using
Apache::Filter.

We use Apache::Filter + Apache::ASP to capture output of ASP/Perl pages
and run them through AxKit.  Likewise, we use Apache::RegistryFilter to
capture the output of perl/CGI scripts.

Brian Wheeler
[EMAIL PROTECTED]



On Fri, 2002-02-08 at 15:38, Gary Benson wrote:
> 
> Hiya,
> 
> Is it possible to write a PHP script that generates XML which is then fed 
> through AxKit? I've been trying variations around the following:
> 
> | <?php
> | header("Content-type: text/xml");
> | echo '<?xml version="1.0" encoding="ISO-8859-1"?>
> | <?xml-stylesheet href="article.xsl" type="text/xsl"?>'; ?>
> | 
> | <page>
> | <!-- blah, blah, stuff that gets processed by article.xsl -->
> | </page>
> 
> With AxKit disabled PHP serves the file (and then the browser applies the 
> stylesheet ;)) but with AxKit enabled in the directory it serves the raw 
> php script as application/x-httpd-php.
> 
> <Directory> config was:
> 
> | SetHandler perl-script
> | PerlHandler AxKit
> | AxCacheDir /var/cache/axkit 
> | AxDebugLevel 5
> | AxLogDeclines On
> | AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
> 
> And the error_log (edited for brevity) says:
> 
> | [warn] [client ...] [AxKit] handler called for /keys/
> | [warn] [client ...] [AxKit] checking if we process this resource
> | [warn] [client ...] [AxKit] '/path/to/keys' is a directory
> | [warn] [client ...] [AxKit] provider declined
> | [warn] [client ...] [AxKit] handler called for /keys/index.php
> | [warn] [client ...] [AxKit] checking if we process this resource
> | [warn] [client ...] [AxKit] '/path/to/keys/index.php' not recognised as XML
> | [warn] [client ...] [AxKit] provider declined
> 
> if I reference /keys/, or:
> 
> | [warn] [client ...] [AxKit] handler called for /keys/index.php
> | [warn] [client ...] [AxKit] checking if we process this resource
> | [warn] [client ...] [AxKit] '/path/to/keys/index.php' not recognised as XML
> | [warn] [client ...] [AxKit] provider declined
> 
> if I reference /keys/index.php
> 
> Am I doing something stupid or just attempting the impossible?
> 
> Cheers,
> Gary
> 
> [ [EMAIL PROTECTED] ][ GnuPG 85A8F78B ][ http://inauspicious.org/ ]
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to