On Fri, 31 May 2002, Carole E. Mah wrote:

> In that case then, even if I cache the transformer somehow using the
> "result" and with scope="application" attributes, won't this be
> pointless since the parameters change?

Using "result" is not related to the caching of Transformer objects.  An
implementation may cache Transformer objects in any manner it sees fit, as
long as it can ensure the correct behavior.  Using "result" simply sends
the data to a Result object instead of storing it as a DOM or printing it
out.

> Or (hope, hope) does the caching simply ignore the parameters and just
> keep the DOM (or whatever xalan uses to represent it) of the XML
> document in memory, and then apply the parameters to the stored tree
> each time the transformation is called ? And if so, how would I do
> this?

As a page author, you may assume that the implementation performs no
caching -- that is, you can assume it will always notice your new
parameters.

-- 
Shawn Bayern
"JSP Standard Tag Library"   http://www.jstlbook.com
(coming in July 2002 from Manning Publications)


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to