Tamino v4 has a new feature called highlighting. With this feature you can issue an XQuery query againest Tamino and by the use of the tf:highlight() function of XQuery you can highlight those words that match some criteria. What this does is generate PI’s into the resulting XML document. With XSTL you should then be able to process the PI’s accordingly. But this is brand new in Tamino v4.1.4.
Hope this helps.
Software AG (UK) Ltd.