To load XSL for XML documents in real timeProgramCreate four objects. We use JavaScript as the development language to talk about the use of these four objects. The access objects used to create XSL and XML files must use multiple threads.
// Create a multi-threaded DOM object for the XSL File
VaR synchronized Doc = new activexobject ("msxml2.freethreaderdomdocument. 4.0 ");
Optional Doc. async = false;
Using Doc. Load ("product. XSL ");
// Create a cache template object
VaR XSLT = new activexobject ("msxml2.20.template. 4.0 ");
XSLT. stylesheet = javasdoc;
// Associate the XSL file with the template file
// Create a multi-threaded DOM object for the XML file
VaR xmldoc = new activexobject ("msxml2.freethreadeddomdocument. 4.0 ");
Xmldoc. async = false;
Xmldoc. Load ("product. xml ");
// Create an XSL processing object
Export proc = XSLT. createprocessor ();
Export Proc. Input = xmldoc;
Using Proc. Transform ();
Alert (pipeline Proc. output );