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

Re: Selected attribute in case element

From: John Boyer <boyerj@ca.ibm.com>
Date: Wed, 31 Aug 2005 10:25:29 -0700
To: "Rafael Benito" <rbenito@satec.es>
Cc: www-forms@w3.org, www-forms-request@w3.org
Message-ID: <OF2F4A6CB7.F90A9236-ON8825706E.005E8E5A-8825706E.005FBEEF@ca.ibm.com>
There are several attribute that currently have literal values only but 
which would benefit from 
an XPath expression.  We are looking at, possibly for 1.1, addressing some 
of these concerns.

This is the first I've heard of needing it for selected, though this may 
be because we'd like to 
do something for the case attribute of toggle, which would be almost as 
effective (i.e. allow the
same flexibility, though with a bit more effort).

The three biggest needs are the control attribute on setfocus, the case of 
a toggle, and the 
action of a submission.

We think we should be able to use the notation of th e"attribute value 
template"  In other words,
if the attribute's value is surrounded by curly braces {}, then treat it 
as an xpath and take the result
as the value of the attribute.

In 1.1, we would more likely focus on the three mentioned above because 
they are evaluated at
a specific moment in time as opposed to requiring constant update based on 
changes of data.
Adding an xpath to the selected attribute of case would be like creating a 
UI binding in that it would
have to be notified for any change of referenced data.  We'd then climb 
into dynamic UI bindings
being needed, and of course dealing with conflicts (what if all report 
false or more than one is true).

John M. Boyer, Ph.D.
Senior Product Architect/Research Scientist
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com  http://www.ibm.com/software/





"Rafael Benito" <rbenito@satec.es> 
Sent by: www-forms-request@w3.org
08/29/2005 03:56 AM

To
<www-forms@w3.org>
cc

Subject
Selected attribute in case element







Hi,
I would like to know if to enhance the "selected" attribute of a case 
element to accept an Xpath expression evaluated to boolean and not only 
"true" or "false" was ever considered. This gives the switch case 
structure a more dynamic nature, similar to what can be achieved with 
"relevant".
Regards,
Rafael Benito Ruíz de Villa
Responsable Sistemas de Negocio en Red
Móvil (+34) 617 314 293
rbenito@satec.es
MADRID

Avda. Europa, 34 A
28023 Aravaca
Telf.: (+34) 91 708 90 00 / 91 211 03 00
Fax: (+34) 91 708 90 90 / 91 211 03 90


picture
(image/gif attachment: 01-part)

picture
(image/gif attachment: 02-part)

Received on Wednesday, 31 August 2005 17:26:19 GMT

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