Jason,

The only thing I can think of that would come close is using a <foreach>,
and only if all the files of each type (of transformation) are in the same
directory.

Otherwise, please patch away. It is a good feature, and will make better use
of template caching than the above solution, even if it works for you.

----- Original Message -----
From: "Jason Pettys" <[EMAIL PROTECTED]>
> Hi All,
>
> I'd like to do something like this:
>
> <style
> style="CodeGenerator.xsl"
> outextension="java">
> <infiles>
> <includes name="*.xml"/>
> </infiles>
> <style>
>
> See an example below if this needs clarification.
>
> In my situation, XML files are added often, and there are four different
stylesheets for each one, making a style task per transform a maintenance
problem.
>
> Is there anything currently in NAnt to pull this off?  I saw there's some
note of "todo: filesets" in the style task source, and so I'll probable code
it up unless there's a different way to accomplish the same thing.
>
> For fileset:
>   cat.xml
>   dog.xml
>   fox.xml
>
> The CodeGenerator.xsl will be applied against each individually, yielding:
>   cat.java
>   dog.java
>   fox.java



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to