Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Problems embedding Javascript with a '>' into XSL stylesheet Problems embedding Javascript with a '>' into XSL stylesheetTo: NULL Date: 10/2/2006 1:29:00 AM I am trying to create an XSLT stylesheet in which the following javascript is embeded: <script> function xyyyczz919RemoveApostrophe(val) { out = "\'"; // replace this add = "'"; // with this temp = "" + entry; // temporary holder while (temp.indexOf(out) > -1) { pos= temp.indexOf(out); temp = "" + (temp.substring(0, pos) + add + temp.substring((pos + out.length), temp.length)); return temp; } </script> However, the line: while (temp.indexOf(out) > -1) { always comes out as while (temp.indexOf(out) > -1) { and this resulsts in a script error. I have even tried to include that line as while (temp.indexOf(out) > -1) { but to no avail. How can I fix this??? | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
