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

Re: c:multipart content-type attribute vs. header

From: Alex Milowski <alex@milowski.org>
Date: Mon, 11 Jan 2010 08:04:37 -0800
Message-ID: <28d56ece1001110804g35f6a314oca62eeb62006108@mail.gmail.com>
To: public-xml-processing-model-comments@w3.org
On Mon, Jan 11, 2010 at 6:53 AM,  <Toman_Vojtech@emc.com> wrote:
> Hi all,
> (Request Entity body conversion) says this about p:multipart:
> "If the content-type attribute is not specified, a value of
> "multipart/mixed" will be assumed."
> So, am I right that the following will cause err:XC0020 (because the
> value of the Content-Type header is inconsistent)?
> <c:request method="post" href="...">
>  <c:header name="Content-Type" value="multipart/related"/>
>  <c:multipart boundary="...">...</c:multipart>
> </c:request>

You should be able to set the content type to whatever multipart/*
content type you request.  The most common would be multipart/mixed
and multipart/related but there are others [1].

If a value of "multipart/related" is assumed, that should only be
in the case where there is no content type header value--either
from a c:header element as in above or by the actual content-type
attribute on c:multipart.  If we don't allow that, we need to
fix it.

[1] http://en.wikipedia.org/wiki/MIME

--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language

Bertrand Russell in a footnote of Principles of Mathematics
Received on Monday, 11 January 2010 16:05:13 UTC

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