W3C home > Mailing lists > Public > public-forms@w3.org > January 2013

XForms 2.0 Draft review: The mediatype Element (for upload)

From: Ulrich Nicolas Lissé <unlisse@gmail.com>
Date: Wed, 30 Jan 2013 11:09:07 +0100
Message-ID: <CAJmsKWCBxNvjiAVdBiQ-=A2L4e4SL0d=J7GrgiYOkvihSC9n-A@mail.gmail.com>
To: Forms WG <public-forms@w3.org>
Dear Group,

http://www.w3.org/MarkUp/Forms/wiki/XForms_2.0#The_mediatype_Element_.28for_upload.29
states that this element is "deprecated in favor of using an AVT in
the mediatype attribute". This cannot work, since the mediatype
element for upload is no surrogate for the mediatype attribute.

The issue here is that we have to deal with two different mediatype
aspects of upload: The mediatype attribute is used to constrain upload
sources presented to the user. In contrast, the mediatype child
element is used to store the actual mediatype of the uploaded
resource.

Unfortunately, both the attribute and the element have been given the
same name. This must change in order to take advantage of AVTs for the
mediatype element. I'd like to suggest to introduce a new "accept"
attribute, which takes on the role of the old mediatype attribute. The
mediatype attribute can be used as an AVT-enabled child element
surrogate then. However, this would create a sneaky backwards
incompatibility. So we should leave the mediatype attribute as is and
introduce a new AVT-enabled attribute for the deprecated mediatype
element, if we come up with an appropriate name.

Regards,
Uli.
-- 
Ulrich Nicolas Lissé
Received on Wednesday, 30 January 2013 10:53:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:58 UTC