Subject: Re: copy nodes based on the criteria]
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Sat, 08 Dec 2007 11:44:10 +0100
|
Senthil Nathan wrote:
<xsl:template priority="2.0" match="//*[@Apply='1']">
....
<xsl:template match="//*[@Apply]">
....
Senthil, just as a general rule, try to never use "//" in a match. It
hardly ever adds anything and it is very inefficient for the processor.
"//" only means something when selecting nodes (i.e, from
xsl:apply-templates), but even then it's over-used and is best be
avoided most of the time.
Cheers,
-- Abel Braaksma
|