Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 60565 invoked from network); 7 Feb 2003 19:23:47 -0000 Received: from unknown (HELO s6.mailbank.com) (64.15.175.126) by daedalus.apache.org with SMTP; 7 Feb 2003 19:23:47 -0000 Received: from schultz.net (user-33qtmnu.dialup.mindspring.com [199.174.218.254]) by s6.mailbank.com (8.11.1/8.11.1) with ESMTP id h17JNng23062 for ; Fri, 7 Feb 2003 11:23:50 -0800 Date: Fri, 7 Feb 2003 11:23:11 -0800 Subject: Re: xslt task with foreach Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) From: Dwayne Schultz To: "Ant Users List" Content-Transfer-Encoding: 7bit In-Reply-To: <399E1F52E73BD41194A800D0B74A08AB033FFFC5@skipper.cincom.com> Message-Id: <98C50DDA-3AD1-11D7-866D-000393849DD4@schultz.net> X-Mailer: Apple Mail (2.551) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: where $SourceDir is passed into the task like: Should get you the path relative to basedir like "dir/file.xml". Dwayne