- From: Erik Bruchez <ebruchez@orbeon.com>
- Date: Wed, 17 Dec 2008 22:10:02 +0100
- To: xforms <www-forms@w3.org>
XForms 1.1 has xforms:* types which are the same as the standard Schema types but allow blank values as well. Your code becomes: <xforms:bind nodeset="/data/number" type="xforms:integer"/> This assumes that your implementation supports this part of XForms 1.1. -Erik On Dec 17, 2008, at 10:04 PM, Jabba Laci wrote: > > Hi, > >> In addition, for implementations that support it, you can also use >> XML >> Schema types, which are quite powerful. > > Thanks for the answers. I have a difficulty with types. I have an > input form, where I'd like to accept integers only. The field is > optional. However, if I precise its type to be "xsd:integer", the > field becomes required since an empty field is not an integer. So the > field must be filled otherwise the form cannot be sent :( Here is what > I tried: > > <xforms:bind nodeset="/data/number" type="xsd:integer" > required="false()" /> > > However, required="false()" has no effect. How to set it optional? > > Thanks, > > Laszlo > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/
Received on Wednesday, 17 December 2008 21:10:43 UTC