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 26693 invoked from network); 7 Feb 2003 15:03:33 -0000 Received: from imail.cincom.com (HELO crusher.cincom.com) (198.8.67.11) by daedalus.apache.org with SMTP; 7 Feb 2003 15:03:33 -0000 Received: by mailer.cincom.com with Internet Mail Service (5.5.2656.59) id ; Fri, 7 Feb 2003 10:03:34 -0500 Message-ID: <399E1F52E73BD41194A800D0B74A08AB033FFFC7@skipper.cincom.com> From: "Cox, Charlie" To: 'Ant Users List' Subject: RE: xslt task with foreach Date: Fri, 7 Feb 2003 10:03:31 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N yes, but I couldn't get it to translate my property instead of passing the propertname in: this causes the filename to be passed as "$(baseName)" instead of resolving the property. Can I use a property for 'in' and 'out'? thanks, Charlie > -----Original Message----- > From: Java Burre [mailto:javaburre@hotmail.com] > Sent: Friday, February 07, 2003 9:52 AM > To: ant-user@jakarta.apache.org > Subject: Re: xslt task with foreach > > > already tried with in and out attributes of xslt task ? > Did not test it. > > > > >From: "Cox, Charlie" > >Reply-To: "Ant Users List" > >To: "'ant-user@jakarta.apache.org'" > >Subject: xslt task with foreach > >Date: Fri, 7 Feb 2003 08:25:19 -0500 > > > >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. > > > >This is what I have so far and it works for one file, but > when I have many > >files, the xslt task processes all the files passing in the > name of the > >first file to each one, then it tries to complete the > foreach by running > >the > >xslt task for the rest, which does nothing since it already > did them all. > > > > > > > > > > > > > > > > > > > > > > > > > > > > >style="myxsl.xsl" processor="trax" > > > > > > > > > > > > > > > > >I tried adding includes="$(baseName)" for the xslt task, > which caused it to > >not process any files. Likewise for includes="$(htmlFileName)". > > > >how can I get the foreach to go through the list of files > and the xslt to > >process only the given file? > > > >thanks, > >Charlie > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org > >For additional commands, e-mail: ant-user-help@jakarta.apache.org > > > _________________________________________________________________ > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: ant-user-help@jakarta.apache.org >