Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Saving a loaded XslTransform >Thread Next - Re: Saving a loaded XslTransform Re: Saving a loaded XslTransformTo: NULL Date: 10/2/2005 1:41:00 PM Edward Clements wrote: > I have an XslTransform object loaded with an .xslt file that has several > "include"-ed files. Is it possible to save this XslTransform object (to a > string, binary, ...) so that I can re-load this saved state without having to > load the .xslt file and all the include files each time? In that context is that? The XslTransform object is intentionally thread safe for transform operations so within ASP.NET for instance you are supposed to create one single instance and load your stylesheet and store the instance in the Application context and then any ASP.NET page being executed in that application can call the Transform method of that single instance. <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlXslXslTransformClassTopic.asp> <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemXmlXslXslTransformClassTransformTopic.asp> That is a way in which .NET allows you to do the load only once, then store the object and reuse it any time you need to do a transform. I don't know of any way to serialize some kind of conglomerated stylesheet to reload it later. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
