[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: Thomas Scheffler <thomas.scheffler_at_uni-jena.de>
Date: Wed, 6 Feb 2008 16:46:07 +0100

Am Mittwoch, 6. Februar 2008 schrieb John Peacock:
> 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.

Probably you read it a different way than me. I did not come to this
conclusion as well as a few websites I investigated after the start of this
discussion. But that was not the important point anyway.

> 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.

Not if you use the webdav layer. The "svn:mime-type" property of the file is
used for the HTTP response of Apache.

> In any case, I'm tired of going round and round on this topic.

/me too

> 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.

I could return that there is no counter evidence against my theory that for
any XML file out there a proper diff or blame output is more usefull
than "binary files differ" or "skipping binary file". No one argued against
that so far.

Here a short list and their mime types that are affected by this issue (on our
repository) too:
DTD application/xml-dtd
JS application/x-javascript
XHTML application/xhtml+xml
XSL application/xml or application/xslt+xml

All of them would be perfect for a nice diff and blame output. Honestly I do
not see a reason why this should not be the default case.

Greets

Thomas

---------------------------------------------------------------------
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 16:46:35 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.