Re: Proposal: exslt:memoisation attribute and/or extension element
Dimitre Novatchev <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
--- Oleg Tkachenko <[email protected]> wrote: > Dimitre Novatchev wrote: > > > As a global scope extension element it will have attribute named > > "functions", whose value is a list of names of func:function elements. > The > > result is that memoisation will be turned on for those > func:function-s. > > +1 from me. > > As memoisation is basically sort of caching control, what about the > ability to switch it not only globally, but locally too? As attribute of func:function, exslt:memoisation="yes" will mean that memoisation is turned on only for this function. In case it were allowed for func:function to have multiple func:result children, then having exslt:memoisation on a specific func:result would mean to memoise only this result (I'm not exactly sure if this is something sensible ... ). As it is, we could still have exslt:memoisation="{$memoiseThis}" on func:result and depending on the value of the variable, memoisation of the result can be dynamically specified. Cheers, Dimitre Novatchev __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail