Re: [xsl] Creating csv from multiple input files

Subject: Re: [xsl] Creating csv from multiple input files
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 6 May 2008 15:39:27 +0100
2008/5/6 Georg Hohmann <georg.hohmann@xxxxxxxxx>:

>  java -jar saxon9.jar xml2csv.xslt
>
>  But this does not work due to the lack of an input file.
>  Could you please help a bit further?

Give your root matching template a name, such as "main"

<xsl:template match="/" name="main">

then set the "initial template" switch on the command line:

java -jar saxon9.jar -it main xml2csv.xslt

or just use the "Standalone" tab on Kernow, click the "auto" button to
discover named templates and choose the one you want to run.

The other way is to just apply the stylesheet to itself, but that's
lame - standalone transforms are the future! :)

-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread