W3C home > Mailing lists > Public > www-forms@w3.org > September 2005

How to display an image depending on an intance data value

From: Catherine Poinsignon <catherine.poinsignon@lombard.lu>
Date: Tue, 20 Sep 2005 11:24:04 +0200
Message-Id: <s32ff186.013@lombard.lu>
To: <www-forms@w3.org>
Hi all,
I have a model that looks like this :
 <xforms:model id="model_wsrp_rewrite_" schema="resource/schema/schemadt.xsd">
            <xforms:instance id="data_wsrp_rewrite_"
                nweb:pageflow-replace-data="always" nweb:primary-input-data="true">
                <data xmlns="">
Dependiing on the value of projectstatus, I want to display an image :
if projectstatus = "green", the image source is "images/green.gif"
if projectstatus = "red", the image source is "images/red.gif"
How can I do that in xFroms ?
Thanks in advance,

Received on Tuesday, 20 September 2005 09:25:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:15 UTC