xsl-list
[Top] [All Lists]

[xsl] XML File Lister for Apache Ant

2008-01-04 04:55:19
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

http://secure.mileywatts.com/confluence/display/CMSW/Miley+Watts+XML+File+Lister+for+Apache+Ant

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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>