|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: looping problem, <xsl: for-each>??
Hi James,
At 10:32 AM 10/7/2003, you wrote: I have the following format but am having trouble trying to group items (in html) under one common category so that it isnt repeated for every item but can act as a title: ... but wasn't sure whetehr i should use count or for-each fucntion to gather common category title for several items..... You won't use count. (Counting things in XSLT is generally not as useful an approach as in other languages, since you don't actually need or want to control the flow of operations.) You may use for-each, but actually for-each is really just syntax sugar for templates in a different mode (and very sweet it is too): the real solution to your problem is in understanding grouping operations and the tricks we use in XSLT 1.0 to achieve grouping. These are covered very nicely in Jeni's XSLT pages: http://www.jenitennison.com/xslt/index.html. Enjoy, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








