On Monday, 08. July 2002 12:45, Linux - ubernissen.dk wrote:
> I have a problem like the one mentioned in the AxKit FAQ,
> with PHP and AxKits use of Expat. With the AxKit config in the httpd.conf,
> Apache just dumps the PHP as a plain text file.
> I use this to avoid problems:
>       # AxKit Perl configuration Start
>       PerlModule AxKit
>       <FilesMatch "\.(xml|xsl)$">
>         SetHandler perl-script
>         PerlHandler AxKit

Try using 'SetHandler axkit', or leave out the <FilesMatch> section 
alltogether and use 'AddHandler axkit .xsp .xml' (no need to associate .xsl 
with axkit, unless you want to use the stylesheet itself as source document).

>         AxAddStyleMap application/x-xpathscript
> Apache::AxKit::Language::XPathScript
>
>         # add the following only if you intend to install Sablotron
>          AxAddStyleMap text/xsl Apache::AxKit::Language::Sablot

These two can go into global config without any side effects.


> The downside is that I can't use PHP and XML at the same time.
> That is compiling an xml page using PHP.
>
> Is there another workaround that helps this ?

No, to pass documents through more than one handler at a time, you either need 
all your handlers to be PerlHandlers, or use Apache 2.0 (which AxKit doesn't 
support yet).

Have you looked at XSP? It is a mightier alternative to php (or asp, jsp, ...)

-- 
CU
        Joerg

PGP Public Key at http://ich.bin.kein.hoschi.de/~trouble/public_key.asc
PGP Key fingerprint = D34F 57C4 99D8 8F16 E16E  7779 CDDC 41A4 4C48 6F94


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to