W3C home > Mailing lists > Public > www-xml-xinclude-comments@w3.org > January 2004

Ambiguity in treatment of accept attributes

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Thu, 29 Jan 2004 16:47:16 -0500
Message-ID: <40197F64.9000907@metalab.unc.edu>
To: www-xml-xinclude-comments@w3.org

The following sentence in the spec (and the similar ones for the accept 
and accept-charset attributes) is not sufficiently clear:

When the XInclude processor fetches a resource via HTTP, it should 
<http://www.w3.org/TR/2003/WD-xinclude-20031110/#dt-must> include the 
value of the |accept-language| attribute, if one exists, in the HTTP 
request as an |Accept-Language| header as described in section 14.4 of 
[IETF RFC 2616] <http://www.w3.org/TR/2003/WD-xinclude-20031110/#RFC2616>.

Specifically, does this mean the value of the accept-language attribute 
ahould be the *exclusive* value of the Accept-language header? or ca it 
merely be part of it? For example, given this element:

<xi:include href="http://ww.example.com/" accept-language="fr"/>

is it acceptable to send this header:

Accept-language: fr, en *

or must the client send exactly

Accept-language: fr

?
Both versions "include" the value of the accept-language attribute. Is 
this header allowed to include anything else?

A related question: what headers may/must/must not a client send in the 
absence of any or all of the accept attributes?

--
Elliotte Rusty Harold
Received on Thursday, 29 January 2004 16:47:56 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Thursday, 9 June 2005 12:16:09 GMT