Summary: | Please add XML related MIME types from RfC 3023 | ||
---|---|---|---|
Product: | shared-mime-info | Reporter: | Daniel Leidert <daniel.leidert.spam> |
Component: | freedesktop.org.xml | Assignee: | Jonathan Blandford <jrb> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
patch for freedesktop.org.xml.in
sample testcase updated patch (+ test list) |
Description
Daniel Leidert
2008-01-15 10:48:57 UTC
Patch? Test files? Please expect them in May (too busy atm). 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 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"/> 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
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. * 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.