Re: [xsl] replace function to replace multiple characters by multiple characters

Subject: Re: [xsl] replace function to replace multiple characters by multiple characters
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 23 Oct 2006 13:42:04 +0100
On 10/23/06, Frank Marent <frank.marent@xxxxxxxxxxx> wrote:
hi all

i can't find a function in xslt that replaces multiple characters by
multiple characters. for the element

<Body>This is a text with a lot of information</Body>

the function should work like

   ...
   <value-of select="powerreplace(., 'a lot of', 'few')"/>
   ...

and result

<Body>This is a text with few information</Body>

<xsl:value-of select="replace(., 'a lot of', 'few')"/>


..will work as you expect - the problem lies in part of the code you
are not showing us - the powerreplace() function?

cheers
andrew

Current Thread