|
Subject: [xsl] escaping ampersands in replace function From: Mario Madunic <hajduk@xxxxxxxx> Date: Tue, 4 Sep 2007 08:58:51 -0700 |
I'm trying to replace all ampersands in a string to 'and'. Long story short: XSLT counts length as 1 but SQL Server counts length as 5, so need to replace. I'm using XSLT2's replace function against a string but am having problems escaping the ampersand. I've tried various methods, but with no luck. replace($l_TempString, '\&amp;', 'and') Any insight will be appreciated. Thanks Marijan (Mario) Madunic
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Variable in xsl:import hr, Florent Georges | Thread | Re: [xsl] escaping ampersands in re, Andrew Welch |
| Re: [xsl] Variable in xsl:import hr, G. Ken Holman | Date | Re: [xsl] escaping ampersands in re, Andrew Welch |
| Month |