Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Problems embedding Javascript with a '>' into XSL stylesheet

From: tamayi@-----.---
To: 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) &gt; -1) {

and this resulsts in a script error. I have even tried to include that
line as

while (temp.indexOf(out) &gt; -1) {

but to no avail. How can I fix this???



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent