Re: [xsl] function for getting filename

Subject: Re: [xsl] function for getting filename
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 1 Sep 2006 11:15:24 +0100
On 9/1/06, Frank Marent <frank.marent@xxxxxxxxxxx> wrote:
i'm struggling again and again over this point:

is there a function in xslt that gives me the clean filename of the
processed xml file? like

   'myfile.xml'
   'test.xml'
   'anyfilename.xml'

i do *not* need the document-uri. only the filename of the current
processed xml file.

In xslt 2.0 I use:


tokenize(base-uri(.), '/')[last()]

In xslt 1.0 you'll need to pass it in as a parameter.

Current Thread