W3C home > Mailing lists > Public > public-forms@w3.org > November 2010

Input controls and datatypes

From: COUTHURES Alain <alain.couthures@agencexml.com>
Date: Sat, 27 Nov 2010 23:28:19 +0100
Message-ID: <4CF18603.9070908@agencexml.com>
To: Forms WG <public-forms@w3.org>
Hello,

#1: I'm now considering how to add new input widgets in XSLTForms.

It's a great idea to allow xf:input to have a different behavior 
according to datatypes and the recommendation doesn't limit this to 
xsd:date and xsd:boolean.

For example, a color picker could be based on a new xf:color datatype.

Then, I wonder if xf:range, xf:secret, xf:upload, xf:textarea and 
xf:select1 couldn't even be obtained from other datatypes to be defined 
with just xf:input??

So, instead of defining a new element for each new control type, this 
would be an implementation-dependent feature to render it with a widget 
or with just a regular input field in a sort of "raw" mode. Is XBL good 
for extending xf:input behavior??

#2: About xf:select, I think that the idea of space separated values is 
good for attribute bindings but, for me, for element bindings, it would 
be more an XML approach to clone the element with the newly selected 
value. This way, an xf:repeat structure could be based on it.

Did the WG already consider these questions?

Thanks!

-Alain
Received on Saturday, 27 November 2010 22:27:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:54 UTC