Firefox however, would ignore the XSL and display the feed in it's standard format (example).
It turns out that when firefox parses xml for display, if it finds an rss or atom tag within the first 512 bytes, it automatically uses it's own format to display the feed within the browser. So if you don't want this behaviour, simply add a comment large enough to pad out the stuff before the feed tag to > 512 bytes:
<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="../XSLT/rss2html_news.xsl" version="1.0"?> <!--This feed contains the company news information. It is transformed to the News section using XSL. This Comment, being longer than 512 bytes, is also intended as a work around to the default RSS display behaviour of Firefox. ABCABCABCABCABCABCABC ABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABC ABCABCABCAB CABCABCABCABCABCABCABCABCABCABCABCABCABCABC--> <rss version="2.0"> ...
No comments:
Post a Comment