find . -name \*xsl | xargs grep -ch 'text()' | sed -e 's/^/.+/' | bc |
tail -1
Oops, should have used collection() with recurse=yes for this. Eat your
own (or rather, Dr. Kay’s excellent) dogfood. The advantage of using
collection() is quite clear: you can restrict the counting to text() in
patterns. But to my embarrassment, some of the stylesheet don’t seem to
be well-formed. Have to fix this first.
--~------------------------------------------------------------------
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>
--~--