xsl-list
[Top] [All Lists]

Re: [xsl] Find/replace algorithm

2021-03-25 12:34:56
On Thu, 2021-03-25 at 16:29 +0000, rick(_at_)rickquatro(_dot_)com 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, 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:  http://www.fromoldbooks.org
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>