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 ]

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
> 





 

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

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