Hi.. In each of the examples I have checked of recursion, it is acomplished using call templates. In no case, apply templates can be used? like if I wish the same template to be called ater I do some processing on the first tag encountered and then the next one by just apply templates of following-sibling? Any example will be helpful. Thanks in advance Tina
Alongwith being a good coder, try to be a good professional as well!
Originally posted by Tina Desai: In each of the examples I have checked of recursion, it is acomplished using call templates. In no case, apply templates can be used? like if I wish the same template to be called ater I do some processing on the first tag encountered and then the next one by just apply templates of following-sibling? Any example will be helpful.
Why not? After you process the first child, just do
Roseanne Zhang
Ranch Hand
Joined: Nov 14, 2000
Posts: 1953
posted
0
Call it before you close the </xsl:template> of the first child.