cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: [cforms] fi:validation-errors in AJAX mode
Date Tue, 02 Aug 2005 16:26:43 GMT
Jason Johnston wrote:

>On Tue, 2005-08-02 at 16:14 +0200, Sylvain Wallez wrote:
>>Because you should really avoid using JXTransformer if you want a 
>>responsive application: this transformer basically feeds the JX 
>>generator with the incoming SAX stream, meaning the template is full 
>>reparsed and recompiled at each execution, which is highly inefficient.
>>IMO, we should make this very prominent in the doc and discourage such 
>>usage, or even deprecate this transformer.
>Ah, I wasn't aware of that.  This should definitely be prominently
>Would it be possible to use Cocoon's caching mechanism to improve this
>situation, i.e. if all the pipeline stages prior to the JX transformer
>are cacheable and valid, then a compiled JX template gets used?

Easy: split your pipeline and use <map:generate type="jx" 
src="cocoon:/part-before-jx-generator"/> !!


Sylvain Wallez                        Anyware Technologies
Apache Software Foundation Member     Research & Technology Director

View raw message