Hi,

 

When I run the following code the xsl file is not released.  Am I doing something wrong?

 

Tx

 

 

Processor processor = new Processor();

 

// Create a transformer for the stylesheet.

XsltTransformer transformer = processor.NewXsltCompiler().Compile(new Uri(Server.MapPath("xsl\\test_flags.xsl"))).Load();

 

// Load the source document

XdmNode input = processor.NewDocumentBuilder().Build(new Uri(Server.MapPath("xml\\flags_template.xml")));

 

// Set the root node of the source document to be the initial context node transformer.InitialContextNode = input;

 

DomDestination result = new DomDestination(); transformer.Run(result);

 

processor = null;

transformer = null;

input = null;

result = null;