XSL Replace multiple strings

B

Bruno

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

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top