[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Using apply templates vs using value-of select /for-each
Title: RE: Using apply templates vs using value-of select /for-each
> Looking at all the examples of XSL I have found/received,
xsl:for-each works best where the structure of the document is fairly rigid (e.g. <BOOK> elements nested within a <BOOKLIST>); xsl:apply-templates works best where there are elements that can appear in many different contexts e.g. <FOOTNOTE>. I think that "apply templates" can do everything that "for each" can do, but "for each" may be more readable in those circumstances where it works. Mike Kay
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|