xsl-list
[Top] [All Lists]

Re: [xsl] msxml and removing parameters from a cached processor

2006-03-24 07:03:04
Emmanouil Batsis wrote:
Joe Fawcett wrote:


How would that work?

Would you have to store the defaults (in a hashtable for example) when the setParameter was called?


Exactly, the "algorithm" would be to store the existing value if each param when setParameter gets called on it *for the first time* and store it in an associative array. clearParameters would just loop through the array and call setParameter for each entry, restoring it.

I was thinking you could add a private field to the XSLTProcessor object for IE that just holds the names in an array. Every time the transform gets called any new params are added to the list. Upon a call to clearParameters on a proc object just loop through the array and set the value to an empty string.

best,
-Rob


hth,

Manos

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>