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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With