Created attachment 32894 [details] testcase, simple XSLT file The detection of xslt files always results in detection of the application/xml MIME type for both gvfs-info and kmimetypefinder. A testcase is attached. This might be a general problem with XML-based MIME types or a "bug" in the written standard/implementation. If you think, this is implementation related, please give me a hint and I will forward this to the GNOME and KDE bug trackers. Maybe adding a a glob-pattern for *.xsl solves the problem (it does at least for gvfs, but not for kmimetypefinder).
Did you actually test this with the latest shared-mime-info master?
Created attachment 32895 [details] [review] proposed patch This is the proposed patch adding the global pattern *.xsl (maybe *.xslt should be added too) and the XSLT namespace.
Seriously, look closely at your patch and answer the questions that were asked.
apt-cache policy shared-mime-info: Installed: 0.70-1 So this was the latest release I tested with. You are right. I missed, that you already added the global pattern. Sorry for that. But you should also add the namespace as proposed in the patch. It is defined in the XSLT specs. BTW: If there are only a few minutes between my posts, you can safely assume, that I did not yet necessarily read your comment. So you could have forbeared from sending your second comment. I don't bother you for my very own pleasure (especially when I try to follow your recently announced requirements!). Thanks.
Problem is confirmed with current Git 787c97105ce3673c2e37d762955c35c24586dd28 (Release-0-70-41-g787c971). The failure is in the 'data' checking, which recognizes the file as application/xml. Bastien: xdgmime does not support check of XML namespaces, does it?
(In reply to comment #5) > Problem is confirmed with current Git 787c97105ce3673c2e37d762955c35c24586dd28 > (Release-0-70-41-g787c971). > The failure is in the 'data' checking, which recognizes the file as > application/xml. > > Bastien: xdgmime does not support check of XML namespaces, does it? Nope, so the data check in the test suite can be expected to fail.
http://cgit.freedesktop.org/xdg/shared-mime-info/commit/?id=177a27d14b11667a35b242d7829face32a8ba8d2 http://cgit.freedesktop.org/xdg/shared-mime-info/commit/?id=85efd184e0680f311c6b7cfdab758d6ab5a3bace See also bug 25860.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.