W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2007

[whatwg] Features in XForms Tiny that Web Forms 2 lacks

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 14 Feb 2007 23:34:17 +0100
Message-ID: <op.tnrfngoy64w2qv@id-c0020>
I went through the examples on http://www.w3.org/2006/11/XForms-Tiny/ to  
find out which features "XForms Tiny" has that Web Forms 2 currently does  
not have. I'm not sure how these features are supposed to be implemented  
(saying this up front as Hixie already had a few interesting questions in  
#webapi). This list might not be complete.

A calculate="" attribute which takes an ECMAScript expression which  
evaluates to a value for the form control.

A constraint="" attribute which takes an ECMAScript expression which  
evaluates to a boolean which determines whether or not the control is  
valid.

A needed="" attribute which takes an ECMAScript expression which evaluates  
to a boolean which determines whether or not the control is required.  
(This basically allows more than than the current required="" attribute in  
the Web Forms 2 specification.)

A relevant="" attribute which takes an ECMAScript expression which  
evaluates to a boolean which determines whether the control is "relevant".  
This attribute also applies to <fieldset> elements.

If you have a repeated set of form controls there's a way to associate a  
single label with the "same" control in each set of form controls which  
you can then style based on one or more of the form controls in the  
repeated set of form controls being invalid (or not meeting another  
condition I presume). See  
http://www.w3.org/2006/11/XForms-Tiny/17/Overview.html for instance.

http://www.w3.org/2006/11/XForms-Tiny/14/Overview.html is also an  
interesting one. I'm not sure how to summarize its functionality though.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Wednesday, 14 February 2007 14:34:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:32 UTC