xsl-list
[Top] [All Lists]

Re: Name of current XML doc...

2004-05-25 01:36:53
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 -



<Prev in Thread] Current Thread [Next in Thread>