Re: [xsl] Getting text from string

Subject: Re: [xsl] Getting text from string
From: Mandar Jagtap <mandar.jagtap@xxxxxxxxxxx>
Date: Tue, 1 Nov 2011 23:21:35 +0530 (IST)
Try using tokenize() function. You can try something like this:
<xsl:for-each select="tokenize($path, '/')">
    <xsl:if test="position() =
        <xsl:value-of select="."/>
This should return you "filename" as per your example string.
Hope this

Mandar Jagtap

>From: Stan Mikita
>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Sent: Tuesday, 1
November 2011 10:48 PM
>Subject: [xsl] Getting text from string
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 =
>xsl:variable name="dirPath"
>xsl:variable name="dirPath"
>XSL-List info and archive:
unsubscribe, go to:
>or e-mail:

Current Thread