On Thu, Sep 30, 2004 at 01:58:30PM +0200, bav@xxxxxxxxxx wrote:
> May be good idea adding functions to php like
> set_result_document(resource #domdocument)
> set_result_stylesheet(string stylesheetfile)
I need to think a bit about this. This would introduce functions
in php to talk to mod_xslt, not quite easy to do, considered the
current architecture (right now, php and mod_xslt communicate
just thx to the apache api and some sort of ``pipe'').
> and after all mod_xslt will apply stylesheet to "stylesheetfile" to
> resulting document...
>
> This algorithm can improve speed for us.
yes, since mod_xslt would directly use the xml tree, instead of having
to parse a whole new document.
> (stylesheets are persistant upon apache requests and ca?hed in memory in
> your module, I am right?)
Not now. Right now, no cacheing is performed yet. It is going to be
introduced in a very short time in the apache2 multithreaded interfaces
and into the proxy sapi. This is due to problems in the libxml API to
store whole trees in a different (and shared among threads/processes)
memory area.
Cheers,
Carlo
--
GPG Fingerprint: 2383 7B14 4D08 53A4 2C1A CA29 9E98 5431 1A68 6975
-------------
"...[Linux's] capacity to talk via any medium except smoke signals."
(By Dr. Greg Wettstein, Roger Maris Cancer Center)