xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor