Re: proposal for MIME behavior in GNOME



On Fri, Dec 05, 2003 at 11:54:29AM -0500, Jonathan Blandford wrote:
> Murray Cumming Comneon com writes:
> 
> > > Presumably valid xml files will appear as text/xml, and not 
> > > as text/plain.
> > 
> > And will that be handled the same as application/octet-stream files, or just
> > opened silently with a default XML-editing application such as gedit?
> 
> What do you want it to do?  What's the 'right' behavior when you get an
> unknown xml file.  Should it open in an application like conglomerate or
> in a text editor.

  Unfortunately Mime-Type is clearly inadequate now for specifying
the default processing of a resource in the face of XML usage.
One way is to try to detect namespaces in the document first kbyte
or so, grepping for common strings might be sufficient. But it is
outside purely Mime-Type handling...

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]