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

@value on value element?

From: Allan Beaufour <beaufour@gmail.com>
Date: Thu, 11 May 2006 13:19:04 +0200
Message-ID: <90d6cb0e0605110419j70a813fewa7ff6c98bf8cac97@mail.gmail.com>
To: www-forms <www-forms@w3.org>

It occured to me that it maybe could be useful to have @value (like
for setvalue and output) on the <xf:value/> element too.

So you could do:
    <xf:select1 ref="foo">
      <xf:label>Choose something: </xf:label>
      <xf:itemset nodeset="/listitems">
	<xf:label ref="@name"/>
	<xf:value value="concat(value1, ',', value2)"/>
      </xf:itemset>
    </xf:select1>
To create "val1, val2" as the value of foo when an item is selected.
This could be used for constructing URIs or creating requests to
abitrary services.

The only problem I can see (right now :) ), is how to handle the
semantics for relevancy for values -- if we want to give that any
meaning (as per the thread Erik started some time ago).

What do you say?

-- 
... Allan
Received on Thursday, 11 May 2006 11:19:13 GMT

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