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

c:multipart content-type attribute vs. header

From: <Toman_Vojtech@emc.com>
Date: Mon, 11 Jan 2010 09:53:43 -0500
Message-ID: <997C307BEB90984EBE935699389EC41C78F24A@CORPUSMX70C.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>
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>

Or... is the test multipart-002.xml (which uses the above c:request and
assumes it is fine) correct and "multipart/related" will be used in this

On c:body, @content-type is required, but it is optional on c:multipart.
Personally, I would say the same "strict" semantics applies, so even if
no @content-type is specified on c:multipart, the processor behaves as
if "multipart/mixed" was specified - and in that case, any extra
Content-Type headers must be consistent with that.

What do you think?


Vojtech Toman
Principal Software Engineer
EMC Corporation
Received on Monday, 11 January 2010 14:54:33 UTC

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