OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] wc in XML document

[ Lists Home | Date Index | Thread Index ]

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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS