xsl-list
[Top] [All Lists]

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

2006-10-23 05:31:58

as far as i can see, the normal 'replace' funktion does match 
multiple characters but only replace *one* character.

replace() in XPath 2.0 does what you want.

For example replace("The cat sat on the mat", "at", "orn") gives "The corn
sorn on the morn".

Michael Kay
http://www.saxonica.com/



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