On Mar 24, 2007, at 6:11 PM, Wolfhart wrote:


Hello,

How can I have ALL files in a directory transformed automatically one after
the other?
Right now I have the following:

java org.apache.xalan.xslt.Process -in ze/1.xml -xsl tm.xsl -out Temp/1.xml

And that works fine. What I would like to do is the following: I would like to have all the files in the ze/ subdirectory transformed via tm.xsl and the
transformed files saved in the Temp/ subdirectory (under the same file
names). Is there a way to do this with Xalan?

I don't think so. I'd say the best tool for that is Ant. If you want to do it programmatically, Ant also has pretty powerful API you can use for that.

-- Santiago

Reply via email to