Click to See Complete Forum and Search --> : Which way of coding is best in XSLT


T.Dinesh
01-19-2005, 10:06 AM
I find most of them use <XSL:for-each> for using for loop.
Instead <xsl:apply-templates/> does it.
I find the apply-templates works fine without writing any XPATH
Suggest me the best way of writing code

Khalid Ali
01-19-2005, 01:01 PM
they both wrok differently and are required in different needs.

T.Dinesh
01-20-2005, 12:08 AM
For a same functionality, I can use both <xsl:for-each> and <xsl:apply- templates>, and the behaviour of the <xsl:apply-templates> can be made used well. Hence it is not different as per needs. I need which way is the best one. As per all issues in testing.