The XSL stylesheets for the XML pages on the gentoo website are being delivered as text/html, not text/xml. This may cause some browsers (in my case, Mozilla FireFox) to be unable to process the raw xml using the stylesheet. Reproducible: Always Steps to Reproduce: 1. Using Mozilla FireFox (possibly all versions of Mozilla, though I haven't tested), attempt to browse the location http://www.gentoo.org/news/en/gwn/20040315-newsletter.xml?passthru=1 Actual Results: FireFox fails to render the page, and gives the following error: Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype: http://www.gentoo.org/xsl/guide.xsl Expected Results: The stylesheet should have been returned by the web server with a mime-type of "text/xml" and FireFox should have rendered the page using the stylesheet.
Lance -- could you look at this as you have time?
I did some research and found that this could possibly be a problem upstream. I tried several different things to try and force apache to use text/xml but it refuses. This plugin appears to only output xml and doesn't do anything for xsl/xslt. I think what happens is, the browser tries to create the layout since the xml contains the stylesheet location. If you want to view just code, you need to either comment out the stylesheet or have axkit ignore it for some reason. http://axkit.org/wiki/view/AxKit/Apache::AxKit::Plugin::Passthru# ^^ that is a link that talks about the passthru plugin directly. If you have any other ideas, I'm open to anything. I really couldn't find too much online about this. BTW, even with that error, if you open up the source of the page, it will still show you the xml in pure form. Kurt, what do you think? Label this upstream or smething else?
This appears to be something of a limitation in how AxKit (which we use for our web site processing) works. See this thread for more info: http://axkit.org/cgi-bin/ezmlm-cgi?3:mss:7940:mkdbejmnbcblidhhejeo passthru=1 is an unsupported feature that we offer for the convenience of our clients. It is not something that should be depended on to function at 100%. Thus, marking as wontfix.
Might be related to http://bugzilla.mozilla.org/show_bug.cgi?id=249153 Axel