[xsd-users] xs:decimal returning inf

Seymour, Robert Robert.Seymour at arris.com
Wed Jul 20 11:01:05 EDT 2016


Hi Boris,

Thanks for the quick response, yes I'm sure we are setting to infinity.  I thought since it was an xs:decimal that it would never map to those types and perhaps have some bounds.  I'll see how I can handle this globally for our use case to extend the decimal to do the checking.

Thanks,
- Rob


-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Tuesday, July 19, 2016 8:57 AM
To: Seymour, Robert
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] xs:decimal returning inf

Hi Robert,

Seymour, Robert <Robert.Seymour at arris.com> writes:

> <xs:attribute name="ebVal" type="xs:decimal" use="required">
>
> When I populate this field I am getting a response of
> 
> ebVal="inf"

You mean you set it to infinity? If so, then what would you expect the result to be. Infinity is an invalid value for xs:decimal. And XSD does not support validation on serialization.

Boris



More information about the xsd-users mailing list