My site is based on XML templates and uses a PHP script to turn them
into XHTML. The script use the expat parser functions and works just
fine. The XSLT extensions are not enabled on the server.
At the moment I am passing requests for the XML files to the script by
setting up .xml as a PHP file using AddType and then using a
mod_rewrite rule to ensure that the request gets handled by the script
(don't laugh!). This is all set up in .htaccess which is all I have
access to.
It's worked fine like this for the past year or so but is, I guess, not
the best way to do it. I'm guessing that there's probably some way to
do this using AddHandler and Action directives (or something) which
would be more 'correct'.
What's the best way to achieve this. Server is virtual running on
Apache 1.3.27 (Linux).
--
Pete
====
*** Email is pete -at- dawnsun -dot- net
into XHTML. The script use the expat parser functions and works just
fine. The XSLT extensions are not enabled on the server.
At the moment I am passing requests for the XML files to the script by
setting up .xml as a PHP file using AddType and then using a
mod_rewrite rule to ensure that the request gets handled by the script
(don't laugh!). This is all set up in .htaccess which is all I have
access to.
It's worked fine like this for the past year or so but is, I guess, not
the best way to do it. I'm guessing that there's probably some way to
do this using AddHandler and Action directives (or something) which
would be more 'correct'.
What's the best way to achieve this. Server is virtual running on
Apache 1.3.27 (Linux).
--
Pete
====
*** Email is pete -at- dawnsun -dot- net
Comment