Subject: Re: [xsl] Command Line From: Dave Pawson <davep@xxxxxxxxxxxxx> Date: Tue, 19 Jan 2010 08:20:32 +0000 |
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).
Andrew provided an XSLT 2.0 solution (the Saxon extension may not be needed)
-- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Command Line, Syd Bauman | Thread | Re: [xsl] Command Line, Dave Pawson |
Re: [xsl] Definite list of XSLT 2.0, Wendell Piez | Date | [xsl] Issue with document('') under, Nicholas W |
Month |