[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Command Line


Subject: Re: [xsl] Command Line
From: Dave Pawson <davep@xxxxxxxxxxxxx>
Date: Tue, 19 Jan 2010 08:20:32 +0000

On 18/01/10 15:12, Syd Bauman wrote:
I realize this is not a fully-XSL reply, but if you're already on the
commandline, you might find it easier to use some tool other than
XSLT to generate a directory listing.

When I want to operate on the list of files in a directory, I
typically start with `xml ls` (called `xmlstarlet ls` on some
distributions), and process the output thereof with my XSLT to mimic
file selection and get the output I want.

I leave it to more experienced XSLTers to address the pros&  cons of
an all-XSLT solution vs this sort of assembly line. I developed this
mechanism before using XSLT 2 was a reasonable option for me, and
am happy enough with it I haven't really looked at switching very
seriously (but could certainly be convinced).



http://www.dpawson.co.uk/xsl/rev2/document2.html#d16881e88


Andrew provided an XSLT 2.0 solution (the Saxon extension
may not be needed)



regards

--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk


Current Thread
Keywords