XSLT & hello

Maxim Dounin mdounin at mdounin.ru
Tue Apr 8 16:38:31 MSD 2008


Hello!

On Tue, Apr 08, 2008 at 01:31:34PM +0200, Manlio Perillo wrote:

> Maxim Dounin ha scritto:
>> [...]
>> I'm planning to implement nginx XSLT module for a while, and studied the 
>> problem in detail.
>>
>> The main problem with XSLT is that in general you can't transform XML 
>> document unless it's fully parsed, and thus nginx will be forced to buffer 
>> entire backend answer before transforming.  This will have obvious memory 
>> implications.
>>
>
> No problem with Nginx, it can buffer on a temp file (and you can force it 
> to *always* buffer to a temp file), so you can just run the XSLT processor 
> as a separate process and send the resulting file to the client (perhaps 
> using sendfile).

:)

This will have obvious disk, processor and memory implications,
and will throw away any benefits from pre-parsing of xslt files.

Any xslt processor needs xml tree in memory to do transformation,
and moving the task to a separate process doesn't make things
better.

Maxim Dounin





More information about the nginx mailing list