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

Subject: Re: [xsl] msxml and removing parameters from a cached processor
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Thu, 23 Mar 2006 13:31:26 -0500
Nick Fitzsimons wrote:
Hi,

Is there some way to remove parameters from a cached
'new ActiveXObject( 'Msxml2.XSLTemplate.3.0' )' XSL processor in
JavaScript?


From the MSXML documentation for addParameter:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/9ddcd728-2646-494a-8fa4-3b68e8c032b7.asp>

"To remove a parameter previously added to the processor, provide a value
of Empty or Null instead. This acts as a signal to the processor to remove
any previously added parameter of the same name."

Yea, I guess that is what I stumbled onto. I tried using null as a value, but it cause a JS error in IE (doesn't work).


It still sucks (for me) because I have to run a loop before and after the transform to add and remove the params. I would think the reset method would handle this, but it doesn't. I don't understand why the processor caches the parameter values in the first place.

-Rob


HTH,


Nick.

Current Thread