Click here to Skip to main content
12,635,428 members (24,571 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

9.7K views
Posted

XSLT transformation with the Processor object

, 14 Sep 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
How to do XSLT transformation with the Processor object

In order to optimize XSLT transformation in Internet Explorer, you can use the Processor object. See this example:

var xml = new ActiveXObject("Microsoft.XMLDOM");
var xslt = new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
   
xml.load("data.xml");
xslt.load("transformxsl.xml");
   
var processor   = new ActiveXObject("Msxml2.XSLTemplate");
processor.stylesheet = xslt;

var objXSLTProc = processor.createProcessor();
objXSLTProc.input = xml;
objXSLTProc.transform();

I wrote about the performance of XSLT transformation in Internet Explorer here.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Gregory Nozik
Software Developer (Senior) Superderivatives
Israel Israel
I’m a .net architect, focusing mainly on
writing a scalable components, My expertise is designing for optimal performance and scalability. Always in search
of new knowledge and ambitions.

Specialties
Design Patterns, UML, OOP/OOD, .NET, C#, C++, STL, ATL, COM/COM+, VB/VB.NET, IIS, ISAPI,ASP/ASP.NET, WebServices, WCF,HTML/JavaScript, Ajax, XML/XSL/XSD, SQL

Personal blog gregnozik.blogspot.com

You may also be interested in...

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161208.2 | Last Updated 14 Sep 2011
Article Copyright 2011 by Gregory Nozik
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid