Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: XSLT and well-formed XHTML [Thread Next] Re: XSLT and well-formed XHTMLTo: NULL Date: 5/11/2008 5:05:00 PM Vic wrote: > However (and this may not be appropriate for this forum), I only get > blank pages in IE7. The page shows fine in Firefox 2.0, but completely > blank in IE. You can see a demonstration of this at http://www.feedferret.com/index.htm, > which is a page generated by my xml/xslt transformation. > > I don't suppose you, or anyone else reading this, would know why that > is. I haven't looked at all details but I think the problems are caused by your attempt to serve XHTML as text/html but not taking the rules http://www.w3.org/TR/xhtml1/#guidelines into account. I realize you are using XSLT to generate your XHTML but then you should consider XSLT 2.0 as that has an xsl:output method="xhtml" that makes sure your XHTML is compatible with text/html browsers. For instance IE does not like the empty script elements in the form <script type="text/javascript" src="/admin/JavaScript/RSSClient.js" /> you need <script type="text/javascript" src="/admin/JavaScript/RSSClient.js"></script> If you want to use XSLT 1.0 then consider to put some white space in there e.g. <script type="text/javascript" src="/admin/JavaScript/RSSClient.js"> <xsl:text> </xsl:text> </script> that way the semantics are the same as before but IE can handle the non-empty script element. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
