Closed Bug 479641 Opened 16 years ago Closed 16 years ago

default xml-stylesheet no longer applied to text/xml content

Categories

(Firefox :: File Handling, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: godmar, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 I'm using 3.0.6. Somewhere along the update path from FF 2.x I lost the ability to look at XML files in treeview using the nice default stylesheet. You used to display a message "The XML file does not have a stylesheet associated with it" and you would render it. FF 3.0.6 appears to interpret the file as HTML (or something, but since it's all <elements>, nothing displays.) That's sad because this was such a useful feature. Reproducible: Always Steps to Reproduce: 1. Go to http://libx.org/editions/vt.4/config.xml Actual Results: An empty page is rendered Expected Results: I'd like the treeview back here's how I serve it: HTTP/1.1 200 OK Date: Sat, 21 Feb 2009 23:44:37 GMT Server: Apache/2.2.9 (Fedora) Last-Modified: Sat, 15 Mar 2008 13:49:33 GMT ETag: "2909a0-c84-4487a0e7b1540" Accept-Ranges: bytes Content-Length: 3204 Connection: close Content-Type: text/xml
For what it's worth, I also cannot see this file when looking at it locally via a chrome:// URL (this file is installed as part of a Firefox extension.) From that, I conclude that it may not be the mimetype that leads recent versions of Firefox to refuse to display the file via the default stylesheet, but some other structural property. The XML file is created using the Castor framework. The relevant header is: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE edition SYSTEM "http://libx.org/xml/libxconfig.dtd">
Works for me with Firefox 3.0 and latest trunk on Windows XP.
Turns out I was too fast attributing this to a change in Firefox. It is was actually due to a auto-linking style script I am running on this page - this script injects a stylesheet into the page. Apparently, this injection turns off XML rendering mode and turns on HTML mode. To avoid this, is there a simple and quick way to find out if FF is in XML-rendering mode?
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.