List Info

Thread: Internet Explorer XSL transformation error?




Internet Explorer XSL transformation error?
user name
2008-01-21 13:49:56
Hello everyone, I'm getting an error with my XSL
transformation using
I.E. 7 and xmlns="http://www.w3.org/
1999/xhtml" , and I was wondering
is anyone else might have seen it and found a work around?

I've setup an XSL like so:

<?xml version="1.0" encoding="utf-8"
?>
<xsl:stylesheet version="1.0" xmlnssl=&q
uot;http://www.w3.org/1999/XS
L/
Transform" xml:space="default">
<xsl:template match="/">
<html xmlns="http://www.w3.
org/1999/xhtml">
	<head>
		<script type="text/javascript">
			/* <![CDATA[ */
			var x = 1;
			var y = 2;
			function Add()
			{
				if (x == 1 && y == 2) return x + y;
				else return y - z;
			}
			/* ]]> */
		</script>
	</head>
	<body>Hi</body>
</html>
</xsl:template>
</xsl:stylesheet>

In I.E. 7, if I perform a client side transform, the
&& in 'x == 1 &&
y == 2' becomes &amp;&amp; and causes the browser to
show fun little
script error. It works fine in Firefox. Are there any XSL
settings, or
any work-arounds, that I can use to correct this? Removing
the XHTML
xmlns in the HTML tag fixes the problem, but I like to keep
things
strict if at all possible. Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopmentgooglegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribegooglegroups.com
For more options, visit this group at
http:
//cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )