[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Action request: mime-type of xml-dtd should be treated as text

From: John Peacock <john.peacock_at_havurah-software.org>
Date: Wed, 06 Feb 2008 09:37:45 -0500

Thomas Scheffler wrote:
> The in the latter case this means something like, if your grand mother can
> read it it is fine to use text/xml. In any other case and if you are not
> sure "application/xml" is allways right.

All XML documents are application/xml (dogs). Some XML documents are
textual and can use text/xml (poodles). All poodles are dogs, but not
all dogs are poodles. Does that make it clearer?

Just because, in your experience, XML documents are textual, the RFC's
clearly state that text/xml is the appropriate mime-type for those
documents.

An important thing to remember here is that setting svn:mime-type to
'text/xml' affects *ONLY* Subversion's handling of the file. You can
treat these files as whatever other MIME type you want in any other
application. It would only affect how _Subversion_ would process the file.

In any case, I'm tired of going round and round on this topic. I've
started to investigate how to add a new svn:text-type property which
would trump whatever svn:mime-type would normally use. It isn't pretty,
since there are a lot of places that check this. It would be a one line
patch to add an exception for 'application/xml*' but you simply haven't
convinced me that this is the correct solution to anyone's problem
except your own.

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-06 15:38:08 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.