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]