[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Creating csv from multiple input files

Subject: Re: Creating csv from multiple input files
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 06 May 2008 15:37:00 +0200
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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.