On Friday, Feb 7, 2003, at 05:25 US/Pacific, Cox, Charlie wrote:

I'm having trouble getting this task to work. What I need is to run an xslt
task for each file in the directory and I need the filename to be passed as
a parameter to the xslt.
Have you looked at systemId()? It's an XPath function in the http://icl.com/saxon namespace but I am sure Xalan has a similar function. We do something like this:

<xsl:value-of select="substring-after(saxon:systemId(), $SourceDir)"
xmlns:saxon="http://icl.com/saxon"/>

where $SourceDir is passed into the task like:

<param name="SourceDir" expression="${basedir}"/>

Should get you the path relative to basedir like "dir/file.xml".

Dwayne


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to