Re: [xsl] Find/replace algorithm

Subject: Re: [xsl] Find/replace algorithm
From: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 25 Mar 2021 17:34:51 -0000
On Thu, 2021-03-25 at 16:29 +0000, rick@xxxxxxxxxxxxxx wrote:
> Thank you Michael. I like the idea of keeping the processing cost
> constant
> but I was going to use regular expressions in my map, so I may still
> have to
> loop through the lookup structure.

An alternative to consider is to put your input document into a map and
check each map key against all the tokens.

Liam



-- 
Liam Quin,B https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations: B http://www.fromoldbooks.org

Current Thread