From: Chris A. <ch...@ma...> - 2008-07-24 10:00:01
|
Lennart Martens wrote: >> Curiously, when I click on the xml file with Firefox (under Windows), I >> just get the XML displayed. When I bring it up in IE (same machine), the >> style sheet is properly applied (looks nice!). Any guesses why that is? >> Do I have a funny Firefox setting that prevents style sheets from being >> applied? > > I get the same behaviour when I click the link in the email and it opens > in Firefox (3 in my case). Firefox seems to treat the XML as a file > download, and then shows you the file contents as if it were a text > file. If you save the XML file locally however, and then open it in > Firefox, it will apply the XSL and will provide the expected result. Go > figure... Looks like Firefox is simply obeying the (incorrect) MIME type returned by the Sourceforge server... HTTP/1.1 200 OK Date: Thu, 24 Jul 2008 09:43:41 GMT Server: Apache/2.2.3 (CentOS) Last-Modified: Wed, 23 Jul 2008 14:23:33 GMT ETag: "210//psi/mzml/validator/ms-mapping.xml" Accept-Ranges: bytes Content-Length: 21302 Connection: close Content-Type: text/plain; charset=UTF-8 ^^^^^ Regards, Chris -- http://www.matrixscience.com |