[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Creating csv from multiple input files
Georg Hohmann wrote:
I'm using Saxon8 for the tranformation but couldn't find out how to process multiple files on the command line. I also tried Kernow which makes it easy to pass a folder to saxon, but i didn't manage to create a single output file. It would be nice if someone could toss me to the right direction. Is there a pure XSLT-solution or do i have to use specific command-line options for saxon that i do not know? With Saxon you can process a directory (or certain files in it) using the collection function, see http://www.saxonica.com/documentation/sourcedocs/collections.html for Saxon 9. So you could use <xsl:apply-templates select="collection('file:///C:/dir/subdir?select=*.xml')/*/*"/> to process all child elements of all root elements of those .xml files in the directory C:\dir\subdir. -- Martin Honnen http://JavaScript.FAQTs.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|