Bug 81450 - missing mimetype for DTDs: application/xml-dtd
Summary: missing mimetype for DTDs: application/xml-dtd
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-12 20:59 UTC by Wilbert Berendsen
Modified: 2008-06-11 13:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wilbert Berendsen 2004-05-12 20:59:11 UTC
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).
Comment 1 Nicolas Goutte 2005-07-23 19:02:06 UTC
I suppose that kio/kfile is misleading as category.
Comment 2 Nicolas Goutte 2005-07-23 19:55:14 UTC
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
Comment 3 Pino Toscano 2008-06-11 13:34:08 UTC
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.