Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: I want to have an empty textarea [Thread Next] Re: I want to have an empty textareaTo: NULL Date: 2/9/2007 1:37:00 PM Cecil Westerhof wrote: > I do not understand your explanation, but maybe when I take the time to > comprehend it ... Part of the problem is that Pavel gave you a slightly over-theoretical explanation. It's correct, but not the information you really needed right at this time. > Why did the make the for-each when it is not useful? It is useful... when there's actually more than one node to iterate over. The sloppiness in your example is that <xsl:for-each select=".">, in specific, is a no-op. "Process all instances of 'the current node'" is the same as just going ahead and processing the current node. For-each is useful when you want to gather and process _multiple_ nodes/values. In many cases, it actually is better to use an apply-templates call and additional templates rather than a for-each. Learning when to use each of those techniques is something that comes with experience. -- () ASCII Ribbon Campaign | Joe Kesselman /\ Stamp out HTML e-mail! | System architexture and kinetic poetry | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
