Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 101207

Summary: XSL mime-type (x-xslt) still not corrected in shared-mime-info from freedesktop.org
Product: Gentoo Linux Reporter: Axel Dyks <XL>
Component: New packagesAssignee: Heinrich Wendel (RETIRED) <lanius>
Status: RESOLVED WONTFIX    
Severity: normal CC: foser
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: changes XSL mime-type to "application/xml"
decrease the priority of the "x-font-tex-tfm" magic pattern to "49"

Description Axel Dyks 2005-08-03 08:03:48 UTC
Hi,

each time a emerge (a new version) of share-mime-info,
I have to patch the "freedesktop.org.xml" database of mime-types,
because of an incorrect mime-type for XSL files.
/* If mime-type is "application/x-xslt" mozilla browsers
  do neither display an XSL file correctly nor an XML file
  with an attached XSL, if both are stored on the local
  file system. */

Since version 1.54 of "freesdesktop.org.xml" in freedesktop's CVS
the mime-type is changed to application/xslt+xml which should be
OK for XSLT 2.0, but still does not work on current mozilla browsers.

I think a good compromise would be to set the mime-type to "application/xml".

I will attach a/my patch to this bug report and another patch that
is a workaround for a known problem with wrong "mime-magic" detection
that occurs for the "x-font-tex-tfm" magic pattern, i. e.
"x-font-tex-tfm" is detected although the pattern should not match.
/* xdgmime should already be fixed in CVS, but is not realeased yet */

Applying these patches (or something similar) to the gentoo-ebuild
would make a happy gentoo user even more happy.

:-) Axel
Comment 1 Axel Dyks 2005-08-03 08:05:04 UTC
Created attachment 64992 [details, diff]
changes XSL mime-type to "application/xml"
Comment 2 Axel Dyks 2005-08-03 08:07:17 UTC
Created attachment 64993 [details, diff]
decrease the priority of the "x-font-tex-tfm" magic pattern to "49"
Comment 3 Axel Dyks 2005-08-03 11:52:18 UTC
FYI:

* the freedesktop bug report about the XSL issue:  
  https://bugs.freedesktop.org/show_bug.cgi?id=2928

* the freedesktop bug report about the "x-font-tex-tfm" issue:
  https://bugs.freedesktop.org/show_bug.cgi?id=2050
  /* ... though I had the problem with a tiff file ... */

Axel
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2006-02-20 02:10:32 UTC
nothing i will change in the gentoo ebuild, please discuss this with upstream
Comment 5 Axel Dyks 2006-02-26 13:01:57 UTC
I've tried to get this fixed upstream, but without success.

To those who are interested in a workaround:

  https://bugs.freedesktop.org/show_bug.cgi?id=2928

Cheers,
Axel