"Tip: Computing word count in XML documents"
XML is text and yet more than just text -- sometimes you want to work with just the content rather than the tags and other markup. In this tip, Uche Ogbuji demonstrates simple techniques for counting the words in XML content using XSLT with or without additional tools.
It was just a few weeks after I sent the manuscript to the editor that this thread started up on XML-DEV. Spooky timing.
via Copia