[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Getting text from string
Subject: Re: [xsl] Getting text from string From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Tue, 1 Nov 2011 17:23:46 +0000 |
On 1 November 2011 17:18, Stan Mikita <markev8@xxxxxxxxx> wrote: > Hi, > > I have a directory path value and i want to grab the text "filename" > to the right of the last "/". I've tried using the below without any > luck. Is there a reverse search where you can tell it to search from > the right up to the first occurence of a "/"? Value can be many > directories deep. > > path = "dir1/dir2/dir3/dir4/filename" select="tokenize(@path, '/')[last()]" -- Andrew Welch http://andrewjwelch.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Getting text from string, Stan Mikita | Thread | Re: [xsl] Getting text from string, Stan Mikita |
[xsl] Getting text from string, Stan Mikita | Date | Re: [xsl] Getting text from string, Michael Kay |
Month |