Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Saving a loaded XslTransform

From: Martin Honnen <mahotrash@-----.-->
To: 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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent