Bug 14085 - Please add XML related MIME types from RfC 3023
Summary: Please add XML related MIME types from RfC 3023
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-15 10:48 UTC by Daniel Leidert
Modified: 2008-04-22 02:33 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch for freedesktop.org.xml.in (1.43 KB, patch)
2008-04-21 07:48 UTC, Pino Toscano
Details | Splinter Review
sample testcase (4.22 KB, application/xml-external-parsed-entity)
2008-04-21 09:24 UTC, Pino Toscano
Details
updated patch (+ test list) (2.06 KB, patch)
2008-04-21 09:26 UTC, Pino Toscano
Details | Splinter Review

Description Daniel Leidert 2008-01-15 10:48:57 UTC
I would like to requets an addition of the MIME types:

application/xml-dtd (replaces text/x-dtd!)
application/xml-external-parsed-entity
text/xml-external-parsed-entity (maybe an alias for the application/ type?)

The latter would help me to fix an issue detecting .ent files as chemical/x-pdb.

The RfC is here with the necessary information:
http://www.ietf.org/rfc/rfc3023.txt
(seems to be the latest and not obsoleted by some newer RfC)
Comment 1 Bastien Nocera 2008-04-10 07:42:07 UTC
Patch? Test files?
Comment 2 Daniel Leidert 2008-04-10 08:11:31 UTC
Please expect them in May (too busy atm).
Comment 3 Pino Toscano 2008-04-21 07:48:01 UTC
Created attachment 16077 [details] [review]
patch for freedesktop.org.xml.in

- application/xml-dtd added in place of text/x-dtd, that is left as alias
- application/xml-external-parsed-entity is new, and brings the text/ version as alias; application/ as mimetype and text/ as alias was done to be more like the other XML-related mimetypes
- application/xml-external-parsed-entity has no *.xml glob, could be ambiguous
- application/xml-dtd has no *.mod glob, could be ambiguous
Comment 4 Bastien Nocera 2008-04-21 08:53:52 UTC
Comment on attachment 16077 [details] [review]
patch for freedesktop.org.xml.in

>+  <mime-type type="application/xml-external-parsed-entity">
>+    <sub-class-of type="text/plain"/>

It's a sub-class of the XML mime-type, not text/plain.

>+    <_comment>XML external parsed entity</_comment>

Not a great name for the mime-type...

>+    <acronym>XML</acronym>
>+    <expanded-acronym>eXtensible Markup Language</expanded-acronym>
>+    <glob pattern="*.ent"/>
Comment 5 Pino Toscano 2008-04-21 09:24:14 UTC
Created attachment 16079 [details]
sample testcase

Sample of application/xml-external-parsed-entity, found in my Debian system as:
/usr/share/sgml/entities/sgml-iso-entities-8879.1986/ISOcyr1.ent
Comment 6 Pino Toscano 2008-04-21 09:26:24 UTC
Created attachment 16080 [details] [review]
updated patch (+ test list)

The test is marked as expected failing as it is detected as text/html.
Though, the mimetype seem to work nicely, as tested with kmimetypefinder (KDE 4) and thunar.
Comment 7 Bastien Nocera 2008-04-22 02:33:20 UTC
* freedesktop.org.xml.in:
* tests/ISOcyr1.ent:
* tests/list: Patch from Pino Toscano <pino@kde.org> to add
XML entities support, and fix the DTD mime-type to be the one
in the RFC (Closes: #14085)


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.