Version: (using KDE KDE 3.2.2) Installed from: Gentoo Packages OS: Linux currently kde's magic maps a file starting with <!-- to text/html, which causes a lot of DTD files to be recognized as HTML. RFC 3023 http://www.ietf.org/rfc/rfc3023.txt specifies that DTDs should carry the mimetype application/xml-dtd. This would make it easier for katepart to highlight DTDs correctly, and not as HTML (when viewed on the web).
I suppose that kio/kfile is misleading as category.
SVN commit 437958 by goutte: Define application/xml-dtd (part of RFC 3023) Note: RFC 3023 allows also *.mod as file name pattern, however these are sound files too. (So there are skipped here.) CCBUG:81450 (I leave the bug open, as I do not know if it completly fixes bug #81450.) M +1 -1 Makefile.am A xml-dtd.desktop --- trunk/KDE/kdelibs/mimetypes/application/Makefile.am #437957:437958 @@ -64,7 +64,7 @@ vnd.oasis.opendocument.text.desktop \ vnd.oasis.opendocument.image.desktop \ vnd.oasis.opendocument.chart.desktop \ - x-java-jnlp-file.desktop \ + x-java-jnlp-file.desktop xml-dtd.desktop \ x-rar-compressed.desktop mimetypeapplicationdatadir = $(kde_mimedir)/application
KDE 3.5 is frozen for such addition, and KDE 4 uses the shared-mime-info database that includes this MIME type. Although, this MIME type is present only in shared-mime-info 0.30, so you need at least this version for it.