Hiya,
I'm currently working on a plugin which produces documentation for
a cocoon based project. However I've hit a little trouble with file
names.
I want to perform an xsl transform on all appropriate files in the
source directory, (*.xsl for the xslDocumenter, *.xmap for the
xmapDocumenter etc.) However I also want to pass them their filenames
and the relative path from the source directory.
My question is how do get that relative path?
<!-- This creates a variable with all the xmaps -->
<fileScanner var="xmapFiles">
<fileset dir="${core.src.dir}" includes="**/*.xmap"
excludes="**/*.xsp, **/*.xml"/>
</fileScanner>
<!-- This iterates over all the items in the xmapFiles
and generates the html documentation from the using the
installed xmapDocumentation stylesheet
-->
<j:forEach var="xmapFile" items="${xmapFiles.iterator()}">
<style style="${plugin.resources}/xmapDocumentation.xsl"
in="${xmapFile}"
out="${xmapFile}.html"
>
<param name="filename" expression="${xmapFile.name}"/>
<!-- it is here that I want to get the path from the source directory
-->
<param name="site"
expression="${xmapFile.absolutePath}"/>
</style>
</j:forEach>
Any help would be appreciated as I'm really quite stuck.
(Is the xmapFile above something like a java.io.File?)
Thanks,
andy
--
[EMAIL PROTECTED] / [EMAIL PROTECTED]
SDF-EU Public Access UNIX System - http://sdf-eu.org
"Tsk. The arrogance of Truth"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]