cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: [c2] stylesheet parameters redux, call for vote
Date Wed, 18 Apr 2001 16:45:27 GMT
On Wed, 18 Apr 2001, Santiago Gala wrote:

> > Well, its ok for me. I still don't see how a trax transformer knows
> > which parameters will be used by the stylesheet? But I hope you can
> > enlight me :)
>
> In (2), the DOM "proxy" can know *a posteriori*. Is it really needed to
> know in advance?
>
> I mean, after the first request has been processed, the engine knows
> which parameters the output depends on (the ones requested to the DOM).
> Thus the cache key will depend on the parameters really used.
>
> When a second requests comes, if the parameters actually used have the
> same values, the cached result can be delivered. Else, a new key is
> re-computed and we have a new result for caching.
>
> Note that, depending on execution paths, some requests can have more
> parameters actually used than others, but the set should be predictive.
> For instance, if $request/cookies/foo is not null, $session/locale can
> be used, while if cookies/foo is null, no locale is used.
>
> I don't know (yet) the details of the caching algorithm, but it should
> work, assuming no "extra" or "random" dependencies affect the
> transformation.
>
> Thoughts? Am I completely stray?

i think you got it completely. and stated it better than i have been
trying to do. :). carsten, would it be possible for this scheme to mesh
with the cache system?

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message