Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

XSLTemplate does not work. Why ?

Hi,

When I try to execute C# program with follow code:

using MSXML2;

public class test {

FreeThreadedDOMDocument30 mXML = new FreeThreadedDOMDocument30();
FreeThreadedDOMDocument30 mXSL = new FreeThreadedDOMDocument30();

XSLTemplate oXSLTemplate = new XSLTemplate();
IXSLProcessor prc = null;

string html = "";

public test() {

//
// mXML loading with async=false;
// mXSL loading with async=false;
//

oXSLTemplate.stylesheet = (IXMLDOMNode)mXSL;
prc = oXSLTemplate.createProcessor();

prc.input = mXML;
prc.transform();
html = prc.output;
}
}

W2K hangs up with CPU:100% !
Is there any way to solve this problem ?

Thanks,
Dmitry
[784 byte] By [Dmitry] at [2007-11-9 18:22:08]