Check out the pathconvert task: http://ant.apache.org/manual/Tasks/pathconvert.html
It will let you convert your filelist of XML files into a single string stored in a property. you can then pass that as a parameter to your XSLT. Harold On Tue, May 29, 2012 at 6:37 PM, Mark Giffin <m1...@earthlink.net> wrote: > I'm making a single PDF out of a group of XML documentation files. It's an > API reference document and the items will be alphabetized so input order > doesn't matter. > > I want to use a fileset of XML files as input to an XSLT script, something > like this: > > <fileset dir="${src.dir}" id="all.docs"> > <include name="*.xml"/> > </fileset> > > I have been accomplishing this in the past with a manually-maintained XML > file like this: > > <docroot> > <root href="myfile1.xml" /> > <root href="myfile2.xml" /> > <root href="myfile3.xml" /> > <root href="myfile4.xml" /> > <!-- etc. --> > </root> > > Right now I pass in the file above to the XSLT processor like this: > > <target name="xslt-fo" description="XML to XSL-FO"> > <echo>Output FO...</echo> > <java jar="${jar.saxon}" fork="true" failonerror="true" maxmemory="256m"> > <arg line="-w2"/> > <!-- output filename --> > <arg line="-o output.fo"/> > <!-- list of input xml files --> > <arg value="..\all-docs.xml"/> > <!-- XSLT stylesheet to make XSL-FO --> > <arg value="${xslt.fo}"/> > </java> > </target> > > But I'd like to automate it. Is there a way to pass in a fileset instead? > > Thanks > Mark > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.**org<user-unsubscr...@ant.apache.org> > For additional commands, e-mail: user-h...@ant.apache.org > > -- Harold PUTMAN Web Technology Specialist *Lexmark International, Inc. <http://www.lexmark.com>* 740 W New Circle Rd. Lexington, KY 40550 +1(859) 232-2839 hput...@lexmark.com