You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Robert Mederer <ma...@interrom.de> on 2004/03/11 08:34:13 UTC

Re: Problem: Schema Validation with datatype decimal andfractionDigits = 0

Thanks for your answer.

What spec do you mean? The Schema Recommendation? Do you have a link to that paragraph?

Regards,
Robert Mederer

The following message was sent by Kohsuke Kawaguchi <Ko...@Sun.COM> on Wed, 10 Mar 2004 10:09:36 -0800.

> 
> > But the number have one fraction count. Ok if you do some kind of
> > interpretation you can say 0.0 == 0 and so it is valid. But I think it
> > is not the wanted behaviour. If you have 0.1 Xerces says it is unvalid.
> 
> Maybe it's not the behavior you want, but unfortunately that's the
> behavior the spec requires. With xs:decimal, 1.000 = 1
> 
> If you want to define a schema such that you don't want to have
> fractions, use xs:integer as your base type.
> 
> regards,
> --
> Kohsuke Kawaguchi
> Sun Microsystems                   kohsuke.kawaguchi@sun.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org