|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: alphabetical listing
You can eliminate the need to loop for upper case and lower case by translating all items to either up or lower case before the loop. -----Original Message----- From: Nicolas Pillot [mailto:nicolas.pillot@xxxxxxxxxx] Sent: Tuesday, June 08, 2004 10:36 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: alphabetical listing Hello ! I am looking for a way to list all occurences of a given element in a separate file given the first or first two letters. I want that because i need a listing, and have a lot of items. What i do for now is doing a for-each select="item[starts-with(name,'a')]" ... with a through z, A through Z and a cumbersome last for-each with many 'and not starts-with' which is ugly. And slow. There MUST be another, more efficient, more elegant, cleaner way of doing that ! But sadly i can't seem to find the idea how... If you have any idea, feel free to help ! Nicolas --+------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx> --+--
|
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








