On Tuesday, October 7, 2003, at 09:43 pm, [EMAIL PROTECTED] wrote:


Hello all,

I think this one may have come up before but I haven't found any clean
resolution despite extensive googling and some conversations with AxKit and PHP
veterans.


I'm using PHP 4.3.0, Apache 1.3.x, and AxKit/mod_perl.

I'm curious if anyone has managed to find an elegant solution for handling XSL
transformations on XML output from a PHP script using AxKit, rather than
whatever libraries might be available to do this transform as part of PHP. I'd
rather, if possible, keep my PHP code restricted to the purpose of generating
XML (leaving XSLT out of it to be handled by Apache) and I'd also rather not
write the XML to a file if I can avoid it.


As it stands, I have a script which outputs well-formed XML and the XSL
instruction for a .xsl stylesheet which resides on the server. If I save that
XML as a test.xml file, AxKit happily transforms it upon a browser request for
the test.xml. If I don't save it, Apache just throws the XML results of my
script to the mercies of whatever transformation engine the client browser
might have.


Any thoughts on this?



You'll need apache2 for that to work. AxKit currently isn't fully ported to apache2
so you'll have to wait for a bit. It might be possible to make a subrequest from with
axkit to php to get your content that way, but you can't chain handlers directly at the moment.


Mike.



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



Reply via email to