xsl-list
[Top] [All Lists]

[xsl] Markup a paragraph of text based on keywords

2006-08-25 05:57:43
Given this highly contrived paragraph of text:

<p>words apple words juice, orange words apple</p>

...and a lookup file:

<word>apple</word>
<word>juice, orange</word>

I need to wrap the first occurance of each item in the lookup file
with an anchor:

<p>words <a>apple</a> words <a>juice, orange</a> words apple</p>

The space in the keyword makes this a hard problem... any cunning solutions?

cheers
andrew

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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