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: Fri, 22 Jan 2021 20:18:26 -0000
On 22/01/2021 17:51, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx wrote:
On Fri, 2021-01-22 at 06:33 +0000, Mukul Gandhi
mukulg@xxxxxxxxxxxxxxxxx wrote:
On Thu, Jan 21, 2021 at 5:05 PM Peter Flynn peter@xxxxxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

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

The case for accumulators is when you need to gather multiple essentially independent sets of data from the input.

They are vey useful if you are streaming. Otherwise, a two-pass
approach is often much faster and may also use less memory.

I thought it would be something like that, thank you.


P

Current Thread