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>


We now have

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


   <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 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:38:09 UTC