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

Subject: Re: [xsl] finding word count within a document, with xsl:accumulator
From: "Peter Flynn peter@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Jan 2021 11:34:48 -0000
On 21/01/2021 11:04, Mukul Gandhi mukulg@xxxxxxxxxxxxxxxxx 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

Current Thread