Input controls and datatypes

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