XSLT Permomance : for-each vs apply-templates
-
Hi All, Which option is good to use to increase the perfomance in xslt programming. For-each or apply templates Can any body guide me giving some tips of perfomance tuning in xslt. Pls show me the right way... Thanks, RPM.
SoftwareDeveloper(.NET)
-
Hi All, Which option is good to use to increase the perfomance in xslt programming. For-each or apply templates Can any body guide me giving some tips of perfomance tuning in xslt. Pls show me the right way... Thanks, RPM.
SoftwareDeveloper(.NET)
The XSL Elements, xsl:for-each and xsl:apply-templates, performance is not that important in my honest opinion. I use xsl:for-each for simple processing requirements, and xsl:apply-templates for more demanding functional processing. Overuse of xsl:for-each will complicate your code and make it harder to debug. Also, there are some things you cannot do with xsl:for-each but you can do with xsl:apply-templates.
"We make a living by what we get, we make a life by what we give." --Winston Churchill