Re: finding word count within a document, with xsl:accumulator

"Peter Flynn [email protected]" <[email protected]> Thu, 21 Jan 2021 11:34:54 -0000
Newsgroups gmane.text.xml.xsl.general.mulberrytech
Message-ID <[email protected]>


On 21/01/2021 11:04, Mukul Gandhi [email protected] wrote:
> I'm exploring ways with XSLT 3.0's xsl:accumulator instruction in a 
> non streaming way, to count number of words within text documents
> (both XML and .txt input files).
[...]
> XML input document:

[snip]

<xsl:value-of select="count(tokenize(normalize-space(document),' '))"/>

I haven't found a use case for xsl:accumulator yet.

Peter
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/3329386
or by email: [email protected]
--~--