RE: [xsl] XSL and XML Help

Subject: RE: [xsl] XSL and XML Help
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 13 Oct 2006 12:54:54 -0400
At 08:35 AM 10/13/2006, was written:
I do need the for loop because my xml file has more then one set of
infobject.

Sorry, Minho, that doesn't follow.


That's what templates are for, not "for loops", which aren't loops and are not called loops when described accurately, but only imagined by some to be loops by false analogy to other programming languages.

You can do this with a for-each instruction, but anything you can do with a for-each instruction you can do with templates, and usually far better. If you expect to use XSLT much, you should look at templates since the sooner you learn how to use them, the less likely you'll be to get yourself tangled into "for loops" of spaghetti code.

Cheers,
Wendell

Current Thread