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

lastIndexOf('char') and XSLT string functions

Subject: lastIndexOf('char') and XSLT string functions
From: Troadec Pascal <Pascal.Troadec@xxxxxxxxxxxxxxx>
Date: Thu, 15 Feb 2001 10:18:48 +0100
xslt lastindexof
hi,

i'm looking for a xslt method to identify the last iteration of a char into a string.
For example, to extract automatically the name of the html page into the url.

string : "h ttp://www.thesite.com/directory1/dir2/dir3../pageindex.htm"

there are the functions substrings-before() et substring-after(), but they work on the first occurence of the marker-string.
Is there a Xslt function which gives the last occurence of a marker-string (like lastIndexOf('/',"string")) into a string?
In the example above, find the index of the last "/" in order to extract the substring pageindex.htm xith the Xslt function substring(,,).

Thanks for your help

pascal

 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.