Re: [xml-dev] wc in XML document

From
Frans Englich <>
To
Date
2005-09-16T18:20:29Z
ID
<>
Thread
Re: [xml-dev] wc in XML document
On Friday 16 September 2005 17:19, Dave Pawson wrote:
> Has anyone implemented a wc for an XML document please?

(I presume you refer to the unix/Linux command line utility `wc'.)

> We are looking at estimating based on instance processing,
> XML through to braille, and wc is one basis for such
> an estimation.
>
> Word count is one of the few things that remain
> constant between plain text and XML!

One approach is to write a bash script(or similar) that embeds an XSL-T 
stylesheet that extracts all text nodes from an XML document(modified 
identity transform), which the script subsequently feeds into `wc'. (No?)


Cheers,

		Frans