xsl-list
[Top] [All Lists]

Re: [xsl] Command Line

2010-01-19 03:01:18
On 19/01/10 08:20, Dave Pawson wrote:
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)


http://www.dpawson.co.uk/xsl/rev2/regexExampler.html
Shows processing a more complete listing.






regards

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>