Closed Bug 315394 Opened 19 years ago Closed 17 years ago

Opening local xml file with stylesheet results in: Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED INCOMPLETE

People

(Reporter: cwolfhagen, Unassigned)

Details

Attachments

(2 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7 SUSE/1.0.7-0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7 SUSE/1.0.7-0.1

xml files with stylesheet linked does not display correctly, but return an error message.

Reproducible: Always

Steps to Reproduce:
1.create an xml file with stylesheet information
2.create a style sheet and save it as .xsl
3.open the xml file

Or use files attached

Actual Results:  
error message as in summary

Expected Results:  
correct rendering of the xml file

File /etc/mime.types defines xml, dtd, and xsl as text/xml

dtd are not recognised as xml files either.

Renaming the .xsl to .xml will result in correct rendering of the xml file
Attached file stylesheet for recreation (obsolete) —
Your stylesheet is NOT a right XSLT... You give a renamed copy of test.xml
On SuSE 9.3 (+ ?) the xsl extensions are of the mime type text/x-xslt.
This is defined in the file /usr/share/mime/packages/freedesktop.org.xml

To work around modify this file by commenting out the text/x-xslt mime-type and add <glob pattern="*.xsl"/> to the text/xml mime-type.
The run (as root) update-mime-database /usr/share/mime

This problem also exists on other Linux distributions and other UNIXes (including Solaris) and probably the workaround is (probably) similar
Oops - but now it should be correct
Attachment #202099 - Attachment is obsolete: true
This is a dupe of bug 259100. Bug 259206 seems to be fixed for Firefox 1.5. Is it not a problem anymore?
Summary: Opening xml file with stylesheet results in: Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype: → Opening local xml file with stylesheet results in: Error loading stylesheet: An XSLT stylesheet does not have an XML mimetype:
No response from reporter re: comment 7 -->INCOMPLETE.
Reporter, if you still see this problem with the latest Firefox 2 please reopen this bug. Thanks!

Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: