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


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
> 


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