This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

lastIndexOf('char') and XSLT string functions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]