XSL Replace multiple strings

Bruno

Usenet Archive
Joined
Dec 9, 2001
Messages
59
Reaction score
0
Hello,

I don't know well XML and I can't figure out how to solve this problem ..

I need to replace some strings inside a text using XSL and inside a for-each statement (the list of strings to replace).

I've tried to use the common replace functions we can find usually on forums or websites but it outputs several times the same text with every string replaced.

ex:
....
<text> This is the text to modify ! </text>
....

I would like to replace for example 'This' by '<b>This</b>' , 'text' by '<b>text</b>' etc...

for the moment I have :

<b>This</b> is the text to modify ! This is the <b>text</b> to modify !
etc...

I would like :

<b>This</b> is the <b>text</b> to modify !

Any idea ?
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top