Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Saving a loaded XslTransform [Thread Next] Re: Saving a loaded XslTransformTo: NULL Date: 10/2/2005 6:59:00 AM This is in context of either a C# DLL or a managed C++ Windows application. The idea is to save the full context (like Serialize) of a loaded XslTransform object as part of the binary file of my application so that, once loaded, the orginal .xslt + it's "include"-ed xslt files (which could be in sub-folders) are not needed any more (in fact, once the application has loaded the XslTransform object, it does not even need to know where the "include"-ed files came from...) and the binary file can be sent to any one without the need of sending all the necessary (sub-)folders. Edward Clements "Martin Honnen" wrote: > > > 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 | |||
|
