W3C home > Mailing lists > Public > www-forms-editor@w3.org > May 2007

[LC] 8.3.2 The mediatype Element

From: Steven Pemberton <Steven.Pemberton@cwi.nl>
Date: Thu, 24 May 2007 15:25:11 +0200 (CEST)
To: www-forms-editor@w3.org
Message-Id: <20070524132512.0C0E577BBF@sirius.ins.cwi.nl>

http://www.w3.org/TR/xforms11/#ui-commonelems-mediatype

We now have

   <output ref="piccy" mediatype="image/png">

and

   <output ref="piccy"><mediatype ref="../type"/></output>

It would be better if it used @value instead of @ref, since then you
could write:

   <output ref="data"><mediatype value="concat('image/', type)"/></output>

Even better, since the attribute is completely new, is to do away with
the mediatype element altogether:

   <output ref="data" mediatype="../type"/>

(which would require
   <output ref="data" mediatype="'image/png'">
for the literal case.)

The way that mediatype@ref has two different purposes depending on its
parent element is nasty.
Received on Thursday, 24 May 2007 13:25:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 10 June 2009 18:12:15 GMT