i'm using
tokenize(document-uri(/), '/')[last()]
or '\' if working with backslashes.
The document-uri() function returns a URI, not a filename, and URIs always
use forwards slashes as separators.
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
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>
--~--