[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: RE: [xsl] replace function to replace multiple characters by multiple characters
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 23 Oct 2006 13:31:42 +0100

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


Current Thread
Keywords