Login  Register

Re: Re: Schema validation for XSD:int

Posted by Alessandro Vernet on Jun 22, 2009; 12:16am
URL: https://discuss.orbeon.com/Schema-validation-for-XSD-int-tp44183p44188.html

If your schema says those nodes have to be of type xs:integer, if you leave the nodes empty they won't be valid according to the schema. If it should be OK for those nodes to be empty, then the schema needs to be changed. I don't really see another way around it.

Alex

TirupatiReddy wrote
I have nillable="true" for all the xs:integer elements. But it is showing the validation error if we don't enter any value for those elements.


Erik Bruchez wrote
If any validation constraint fails for a node, then that node is  
marked as invalid. This is as per the XForms specification.

Do these elements have xsi:nillable in the schema?

-Erik

On Jun 12, 2009, at 2:10 PM, TirupatiReddy wrote:

>
> Thanks for your suggestion. But the point is I can't change the  
> schema. Right
> now for the temporary fix, I am putting zero by default for integer
> elements. Is there any way that xforms:bind validation overwrites  
> the schema
> validation?
> --
> View this message in context: http://www.nabble.com/Schema-validation-for-XSD%3Aint-tp23968552p24006136.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org  
> mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws