Hello

Is it possible to add a data type to the list of data types supported by 
validation rules in XEP 0122?
http://xmpp.org/registrar/xdv-datatypes.html

Is this done by writing a separate XEP for this, like XEP 0137 (albeit simpler)?
http://xmpp.org/extensions/xep-0137.html

I would like to be able to add color parameters to data forms, as follows:

<field type="text-single"><xdv:validate datatype="someprefix:color"><xdv:regex> 
^[0-9a-fA-F]{6}$</xdv:regex>

My hope was that, clients recognizing this new type, would be able to render a 
color picker, while other clients not recognizing this type, would default to 
the xs:string type, and use the regular expression to limit input to a color 
value.

Choosing a color by entering its hexadecimal RGB-triple is quite difficult for 
a normal user.

Sincerely,
Peter Waher


Reply via email to