[xsl] XML File Lister for Apache Ant

Subject: [xsl] XML File Lister for Apache Ant
From: "Anthony B. Coates (XSL-List)" <abcoatesecure-xsllist@xxxxxxxxxxx>
Date: Fri, 04 Jan 2008 11:54:41 -0000
I often find myself in situations where I need to process a group of XML files with a single XSLT script. The way I usually do this is that my input XML file contains URLs to each of the XML document, and I use the XSLT 'document' function to load each as required. However, that still leaves the question of how to create an XML document containing the necessary file URLs, especially if the files change from one run to the next.

A while back I wrote an Apache Ant (http://ant.apache.org) task which produces an XML file listing of a directory, using Ant's fairly powerful facilities for selecting files/directories based on names and patterns. This can this be used an your input XML document. I have mentioned this utility once before, but previously you needed to register before you could download it. I've changed that now, so if this is something that you would find useful, you can download it immediately from


I hope some of you will find it useful, and feedback is very welcome.

Cheers, Tony.
Anthony B. Coates
Senior Partner
Miley Watts
Experts In Data
+44 (79) 0543 9026
Data standards participant: ISO 20022 (ISO 15022 XML), ISO 19312, UN/CEFACT TMG, MDDL, FpML, UBL.

Current Thread