you're using the same mechanism what Andrew, used but perhaps in
significantly expensive ways (the complexity of your XSLT fragment is
unnecessary high -- logical as well as computational).
I would go for Andrew's solution.
On Tue, Nov 1, 2011 at 11:21 PM, Mandar Jagtap
<mandar(_dot_)jagtap(_at_)yahoo(_dot_)co(_dot_)in> wrote:
Try using tokenize() function. You can try something like this:
<xsl:for-each select="tokenize($path, '/')">
<xsl:if test="position() = last()">
<xsl:value-of select="."/>
</xsl:if>
</xsl:for-each>
This should return you "filename" as per your example string.
Hope this helps!
Mandar Jagtap
--
Regards,
Mukul Gandhi
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--