raffazizzi / TEI-TEST

This repo is for TESTING purposes only. Changes pushed here will be lost
0 stars 0 forks source link

att.internetMedia's @mimeType should get data.word+ datatype #106

Closed raffazizzi closed 9 years ago

raffazizzi commented 13 years ago

As mimeTypes are defined and used, for example in http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html, they are meant to be able to supply multiple values. Currently @mimeType is datatype data.word and we're suggesting it should be 1-infinity of data.word+

-James

Original comment by: jamescummings

raffazizzi commented 13 years ago

We may have had a misunderstanding as I suggested to treat the specification of the media type as a possible content of the "accept" HTTP header. It seems that that may need to become a separate ticket [see below]. Part of the reason for the misunderstanding is that the current description of @mimeTime is veeeery general and we wanted to make some sense of it. The description should be more informative.

As for "media types", it seems to me that the term is at least three ways ambiguous, and the doc at http://www.ietf.org/rfc/rfc4288.txt shows at least two, maybe all three of the usages. Besides interpreting the term as referring to the top-level type, e.g. "text", which we are rather not interested in here on its own, the treatment intended currently in the Guidelines apparently concerns the type/subtype combination, as in "text/plain", but as some RFCs stress or strongly recommend (e.g. http://www.ietf.org/rfc/rfc3023.txt -- "XML Media Types"), it often makes sense to also use parameters, and these parameters are separated by a space, hence data.word alone indeed does not appear sufficient. Example from RFC3023: "text/xml; charset='utf-8'".

The issue of the "accept" HTTP header that may need to go into a separate ticket for a separate attribute, leaving this one as solely informative, concerns strings such as:

"text/plain; q=0.5, text/html, text/x-dvi; q=0.8, text/x-c"

which means "text/html and text/x-c are the preferred media types, but if they do not exist, then send the text/x-dvi entity, and if that does not exist, send the text/plain entity."

Original comment by: bansp

raffazizzi commented 13 years ago

We need pure MIME labels on <graphic> and <binaryObject>, so it seems to me that the Accept-type stuff that I mention below should go into a separate ticket, for the purpose of e.g. <ptr> and <ref>, as requested in ticket #3113682 .

Relevant URLs:

* released version: http://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-att.internetMedia.html

* current version: http://bits.nsms.ox.ac.uk:8080/jenkins/job/TEIP5-Documentation/lastSuccessfulBuild/artifact/Guidelines-web/en/html/ref-att.internetMedia.html

* related ticket concerning <ref> and <ptr>: https://sourceforge.net/tracker/?func=detail&aid=3113682&group\_id=106328&atid=644065

Original comment by: bansp

raffazizzi commented 13 years ago

Piotr: how does your comment relates to the actual feature request filed in here (I'm not an expert)? Do you support the change for @mimeType ?

Original comment by: laurentromary

raffazizzi commented 13 years ago

I point out that we at least need two separate interpretations for this attribute, or two separate attributes. If we keep it as one then we apparently need to define it in two ways depending on the context. But then I'm not really sure if e.g. <ref> and <ptr> want to join the entire attribute class -- maybe they rather want just the attribute (like what happens with @type).

Talked to James about this yesterday, coming from the stance that we should have two separate attributes. James pointed out that introducing a new attribute will slow things down and that an alternative strategy is to keep this one with two context-dependent interpretations, like @type. I agree that this is more pragmatic.

As for the datatype change, yes, I support it, especially if this attribute is to serve a double role. data.word alone is not enough for any serious purpose.

Original comment by: bansp

raffazizzi commented 13 years ago

A new ticket is needed for the concerns raised by Piotr, I think. The change to permit multiple data.word values is all we're going to implement for this one, and it seems fairly non controversial.

Original comment by: lb42

raffazizzi commented 13 years ago

Original comment by: lb42

raffazizzi commented 13 years ago

I agree with Lou.

Original comment by: kshawkin

raffazizzi commented 13 years ago

Me too. green light!

Original comment by: laurentromary

raffazizzi commented 13 years ago

Implemented multiple values at rev 9641

Original comment by: lb42

raffazizzi commented 13 years ago

Original comment by: lb42