[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: wc in XML document
Thanks Steve, Bob, Michael. Mostly win32 based hence wc not readily available; I'd get dirty look if I asked to install Tcl Steve! Wasting even more than 9 characters :-) <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1"> <xsl:template match="/"> <xsl:message> <xsl:value-of select=" string-length(normalize-space(.)) - string-length(translate(normalize-space(.),' ','')) "/> </xsl:message> </xsl:template> </xsl:stylesheet> This seems to match wc output from the piped 'null' stylesheet. Thanks. I guess the way to a .exe would be sax filter based, accumulating wc in the text handler? regards DaveP >
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|