Page 1 of 1

Solved: XML/XSL error in IE

Posted: Tue Aug 19, 2008 9:32 am
by Peter_w
Hello,

I have the following error in IE6 when parsing a rss feed with a xsl stylesheet.
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
The value of the 'version' attribute may not be '1.O'.
But firefox and Opera parse it.
(Although firefox not in the layout I want)

Re: XML/XSL error in IE

Posted: Wed Aug 20, 2008 3:43 pm
by chris
Can you post your XSL-code?

It might be helpfull in debugging.

Re: XML/XSL error in IE

Posted: Sat Aug 23, 2008 11:32 am
by Peter_w
Here is my xls-file:

Code: Select all

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.O" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
  <head>
    <title><xsl:value-of select="rss/channel/title"/>RSS Feed</title>
    <style type="text/css">
	@import url(rss.css);
    </style>
  </head>
  <body>
	<xsl:for-each select="rss/channel/item">
	<div class="article">
	  <h2><a href="{link}" rel="bookmark"><xsl:value-of select="title"/></a></h2>
	  <xsl:value-of select="description"/>
	</div>
	</xsl:for-each>
  </body>
</html>
</xsl:template>
</xsl:stylesheet>

Re: XML/XSL error in IE

Posted: Sat Aug 23, 2008 12:29 pm
by chris
You have put a O(Letter) instead of 0 (zerro) in the version number.

Code: Select all

Wrong:
<xsl:stylesheet version="1.O" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Corrected:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
You can't see it in the code, put if you change the font style you'll see it.

Re: XML/XSL error in IE

Posted: Sun Aug 24, 2008 3:03 pm
by Peter_w
Thanks,

That was indeed the problem.