Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XslTransform vs XslCompiledTransform

XslTransform appears to have been deprecated by Microsoft in favor of XslCompiledTransform. Theoretically, if I was doing just one transform during the execution of my application, shouldn't interpreting the XSLT (through XslTransform) be faster than compiling it? If so, is XslTransform written so badly that the improvements made to XslCompiledTransform more than compensate for it?

like image 278
JM. Avatar asked Mar 05 '09 01:03

JM.


1 Answers

You might want to see the documented differences between XslTransform and XslCompiledTransform here and here, and make the decision yourself.

In addition, there are some cases in which XslTransform is more incompliant. More work was done on security in XslCompiledTransform.

So, a lot of reasons one should consider using the new XslCompiledTransform instead of the old XslTransform, even in cases where the transformation will be run only once and could be slightly faster with the old XslTransform.

like image 87
Dimitre Novatchev Avatar answered Oct 19 '22 16:10

Dimitre Novatchev