Re: Schema validation for XSD:int
Posted by
Erik Bruchez on
Jun 11, 2009; 4:08pm
URL: https://discuss.orbeon.com/Schema-validation-for-XSD-int-tp44183p44184.html
In XML schema, if an element or attribute is of type xsd:int, then it
simply can't be empty. That's the way XML Schema works, independently
from XForms.
If you switch to using xforms:bind for validation, you can use the
type xforms:int, which allows empty values.
-Erik
On Jun 10, 2009, at 11:44 AM, TirupatiReddy wrote:
>
> Hi,
>
> I am validationg an XForm with XSD. I have some elements of type
> XSD:int.
> When I submit my form without entering any value for those
> elements , It's
> saying the form has errors. It means those fields are required. How
> do I
> make the elements with XSD:int not required. If I change those
> elements to
> XSD:string they are working fine. So what I assume is if we have the
> XSD:int, those are required, right? So please let me know how do I
> solve the
> problem.
>
> Thanks
> TirupatiReddy
> --
> View this message in context:
http://www.nabble.com/Schema-validation-for-XSD%3Aint-tp23968552p23968552.html> Sent from the ObjectWeb OPS - Users mailing list archive at
> Nabble.com.
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws