Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45173 - XSL stylesheets have incorrect mime-type
Summary: XSL stylesheets have incorrect mime-type
Status: RESOLVED WONTFIX
Alias: None
Product: Websites
Classification: Unclassified
Component: Other (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Kurt Lieber (RETIRED)
URL: http://www.gentoo.org/news/en/gwn/200...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-19 15:47 UTC by Greg Symons
Modified: 2004-08-01 04:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Symons 2004-03-19 15:47:35 UTC
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.
Comment 1 Kurt Lieber (RETIRED) gentoo-dev 2004-03-19 16:03:17 UTC
Lance -- could you look at this as you have time?
Comment 2 Lance Albertson (RETIRED) gentoo-dev 2004-03-22 09:59:19 UTC
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?
Comment 3 Kurt Lieber (RETIRED) gentoo-dev 2004-03-22 11:34:19 UTC
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.
Comment 4 Axel Dyks 2004-08-01 04:59:04 UTC
Might be related to

  http://bugzilla.mozilla.org/show_bug.cgi?id=249153

Axel