W3C home > Mailing lists > Public > www-forms@w3.org > August 2009

xf:output, @mediatype and @value

From: Philipp Wagner <news@philipp-wagner.com>
Date: Tue, 11 Aug 2009 17:38:19 +0200
To: www-forms@w3.org
Message-ID: <h5s39d$812$1@ger.gmane.org>
Hi,

recently Mozilla XForms got a bug report [1] that the following is not
working:

<xf:output mediatype="image/png" value="'xml.png'"/>

Expected behavior was displaying the image. The real use case for this
remains unclear (you could just use a html:img in that case or whatever
the host language provides you to display images).

While the fix is straightforward, a question remains:
Are we always supposed to treat @value as anyURI if @mediatype is set to
"image/*"? Orbeon seems to do this for at least this case as well [2].
Are there other cases where we should/could make such an assumption?

A clarification would be greatly appreciated.

Philipp


[1] https://bugzilla.mozilla.org/show_bug.cgi?id=507621
[2]
http://www.orbeon.com/ops/doc/reference-xforms-guide#xforms-image-mediatype
Received on Tuesday, 11 August 2009 21:08:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:16 GMT