xsl-list
[Top] [All Lists]

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

2006-10-23 05:42:24
On 10/23/06, Frank Marent <frank(_dot_)marent(_at_)emnemics(_dot_)ch> 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

--~------------------------------------------------------------------
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>