[Home] [By Thread] [By Date] [Recent Entries]


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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member