[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Get Document File name


Subject: RE: [xsl] Get Document File name
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 23 Oct 2006 08:58:05 +0100

> 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/


Current Thread