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

Re: [xsl] Replace function


Subject: Re: [xsl] Replace function
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 22 Oct 2010 14:11:33 +0200

Meeraj Kunnumpurath wrote:
Hi,

Is there a function in XSLT to replace characters from a string that
are not present in a set of characters?

For example if the string is "ABCD", the valid character set is [A, B,
C] and the replacement charcater is '-', the function will return
'ABC-'.

XSLT/XPath 2.0: replace("ABCD", "[^ABC]", "-")


--


	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/


Current Thread
Keywords