[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: alphabetical listing

Subject: RE: alphabetical listing
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Wed, 09 Jun 2004 05:42:02 +0000
msn letters
Hi Nicolas,

Could you not place the letters in a separate file too?


Then access it in the document using the document() function?

The code could the look like the following:

<xsl:for-each select="$letters-in-external-file/letter"> <!-- Loops through letters -->
<xsl:for-each select="item[starts-with(name,.)]"> <!-- Loops through items with specific letter -->
<!-- Your code here -->

Hope this is usable.

Ragulf Pickaxe :)

From: Nicolas Pillot <nicolas.pillot@xxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  alphabetical listing
Date: Tue,  8 Jun 2004 22:36:25 -0400

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 !


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>

Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.