Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] escaping ampersands in replace function [Thread Next] Re: [xsl] escaping ampersands in replace functionTo: Date: 9/4/2007 4:52:00 PM > replace($l_TempString,'&','and') > get an error message stating the & must be followed by an entity > reference yes, that's not a well formed XML fragment. > replace($l_TempString,'&','and') and replace($l_TempString,'&amp;','and') > the amp is not replaced. so presumably $l_TempString does not contain a substring that matches either "&" or "&". so what is $l_TempString ? ie what does <xsl:value-of select="$l_TempString"/> produce. It's always helpful to post a complete xml input and complet xslt stylesheet (in this case, each only need be two or three lines long, David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
