Re: [xsl] Name of current XML doc...

Subject: Re: [xsl] Name of current XML doc...
From: Graeme <xsllist@xxxxxxxxxxxxx>
Date: Tue, 25 May 2004 09:36:53 +0100 (BST)
On Tue, 25 May 2004, Niclas Hedhman wrote:


Is possible to get hold of the path+name of the XML document that is currently being processed??

I am using Ant's <xslt> task so I can't pass in a parameter easily...

You can pass a parameter as follows:


<target>
  <xslt>
    <param name="foo" expression="${foo}">
  </xslt>
</target>

and assign "foo" with <xsl:param name="foo"/> and use $foo to get the
value in your xsl document.

HTH,

Graeme -

Current Thread