On Tuesday, October 7, 2003, at 04:43 PM, [EMAIL PROTECTED] wrote:
Hello all,Have you tried using the document() call in XSLT? It accepts URL parameters. If you have a web server serving up the PHP (maybe even the same server) you could then access it using something like document('http://localhost/foo/bar.php'). Apache should generate the XML as thoough for a normal user agent, then you suck it into the XSLT through the xsl:copy-of command.
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?
simon
Nathan Simpson
-- www.simonwoodside.com :: www.openict.net :: www.semacode.org 99% Devil, 1% Angel
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
