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

first occurence of a string value..

Subject: first occurence of a string value..
From: "james walker" <jameswalkerandy@xxxxxxxxxxx>
Date: Mon, 27 Oct 2003 10:45:41 +0000
occurence in a string
I wanted to put the first letter of a certain string value as a title if it hasnt been visted already (combined with an xsl:sort to sort them alphabetically). For example, if the first "i" found was in "id checking" i would want to put "i" as the title and if it was found again, i would want to ignore it so the utput would look a little like:

I:
id checking
id security

J:
John B
Joisting
.
.
.

Apologies if i havent clarified this very well. I know how to use starts-with to get the first letter of each title but wasnt sure if there was a first occurence function to use? Also if anyone knows a better way to make it alphabetical with titles i would appreciate their input (apart from using xsl:sort)
thanks
james


_________________________________________________________________
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.