W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > January 2009

Re: p:http-request - conflicting content-type information for body parts

From: Florent Georges <fgeorges@fgeorges.org>
Date: Mon, 26 Jan 2009 16:31:58 +0100
Message-ID: <ebaca5bf0901260731v548989feldf74c8a1aff8fab9@mail.gmail.com>
To: Toman_Vojtech@emc.com
Cc: public-xml-processing-model-comments@w3.org

2009/1/26 ? wrote:


> The spec says (section that: "The content-type
> attribute specifies the media type of the body or body part,
> that is, the value of its Content-Type header."

> From this I assume that the content-type attribute of c:body
> overrides any conflicting information in the headers for the
> body part, but it is not really obvious from the spec. ...or,
> it may be as well the other way around.

  If I am right, that's an err:XC0020 instead:

    It is a dynamic error (err:XC0020) if the value of a header
    specified via c:header (e.g. Content-Type) conflicts with the
    value for that header that the step and/or protocol
    implementation must set.

      -- http://www.w3.org/TR/xproc/#err.inline.C0020

  BTW @id / Content-ID and @description / Content-Description
suffer the same problem.  But I am not sure "conflicts" is
enough.  What about content-type="text/xml; utf-8" and c:header
Content-Type set to "text/xml" for instance?  Do they conflict?


Florent Georges
Received on Monday, 26 January 2009 15:32:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:26 UTC