W3C home > Mailing lists > Public > public-forms@w3.org > July 2008

RE: XForms 1.1: xforms:submission/@mediatype issue

From: Klotz, Leigh <Leigh.Klotz@xerox.com>
Date: Thu, 10 Jul 2008 15:41:21 -0700
Message-ID: <E254B0A7E0268949ABFE5EA97B7D0CF40541FA7D@USA7061MS01.na.xerox.net>
To: "Erik Bruchez" <ebruchez@orbeon.com>, "public-forms (new)" <public-forms@w3.org>

submission/@mediatype was put in to allow SOAP serialization as
text/xml. ; The restriction to XML types was intentional, as we wanted
to make as limited a feature as possible in a short time.  A number of
issues and use cases have surfaced since then, and we're now ready to
begin thinkinga about non-XML serializations, so I think we should
decide on this issue in that context.

Separately, Philip Fennell has raised questions about the Mozilla XForms
implementation, which uses the browser's default Accept for
submission/@method="get" replace="instance"; that's clearly wrong, as it
doesn't accept image/png for replace="instance".  However, there's no
way to set it, and submission/@mediatype, which might be shoehorned into
setting the submission Accept mediatype for get (as there is no
content), clearly isn't going to do double duty for POST and other
verbs, as they do have content.  It may be that submission/header is
good enough for this case, but we might want to consider this issue at
the same time to be sure.

-----Original Message-----
From: public-forms-request@w3.org [mailto:public-forms-request@w3.org]
On Behalf Of Erik Bruchez
Sent: Wednesday, July 09, 2008 3:03 PM
To: public-forms (new)
Subject: XForms 1.1: xforms:submission/@mediatype issue


I notice that the definition of the @mediatype attribute talks about
*XML serialization* only. I suppose that the current working is not
intentional. It seems to me that this restriction is undesirable and
that this attribute should work with other serializations.

The clear rationale is that @method implies a default serialization;
@serialization implies a default mediatype; and @mediatype can be used
to override that. It does not seem that this should be restricted to XML

Practically, in our implementation, we have something like:

   final String actualRequestMediatype = (mediatypeAttribute ==
null) ? defaultMediatypeForSerialization : mediatypeAttribute;


Orbeon Forms - Web Forms for the Enterprise Done the Right Way
Received on Thursday, 10 July 2008 22:42:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:48:30 UTC