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

[xsl] escaping ampersands in replace function


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;amp;', 'and')

Any insight will be appreciated.

Thanks

Marijan (Mario) Madunic


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords