Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSLT and well-formed XHTML

From: Martin Honnen <mahotrash@-----.-->
To: 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>&#160;</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/


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