Re: XSLT processing instruction to use PHP
On 06.09.2004 00:31, Janwillem Borleffs wrote:
> A processing-instruction does not execute the code within. The
> following example: [..] <?foo type="txt/xml"?>
Thanks for clearing that up. I was under illusion PHP code would be
magically executed. ;-)
> If you want to use PHP functions in your XSLT stylesheet, you can do
> this through the document() function.
I started on the examples. But it seems awefully complicated. Isn't
there an another way to PHP parse the XML or XSL file before it gets
XML/XSLT parsed?
> And yes, this requires the parsing of the stylesheet to be done by
> PHP's XSLT extension...
Yup, I've got them installed. The 'normal' parsing works now, just not
with the extra PHP code inside.
Thanks for the help
hayko
|