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: <Toman_Vojtech@emc.com>
Date: Mon, 26 Jan 2009 11:32:48 -0500
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870E4C0E72@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>

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

Is it really so? I thought that the error is for something else, like if
use a value that is not valid/supported for given header.

> What about content-type="text/xml; utf-8" and c:header
> Content-Type set to "text/xml" for instance?  Do they conflict?
> 

Interesting question... I would say that there is no conflict here. One
of the content-type values will be completely ignored, in my opinion.

Regards,
Vojtech
Received on Monday, 26 January 2009 16:33:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 26 January 2009 16:33:46 GMT