Re: [xsl] An efficient XSLT program that searches a large XML document for all occurrences of a string?

Subject: Re: [xsl] An efficient XSLT program that searches a large XML document for all occurrences of a string?
From: "Michael Kay michaelkay90@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 3 May 2024 08:13:14 -0000
> On 2 May 2024, at 23:50, Bauman, Syd s.bauman@xxxxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> I do not know any answer to the question, and without the data (and perhaps
some further information about your system, like default heap space) I cannot
reproduce the problem.
>
> But my first instinct, for no intelligent reason whatsoever, is to use
template application for flow of control...



> If it's running out of heap space on a 5Gb source document, then it's almost
certainly failing while building the input tree, and the actual XSLT code
executed is irrelevant. The only answer for such a large document is some kind
of streaming approach.


Michael Kay
Saxonica

Current Thread