We read the spec the same way you do. The problem occurs when using Xerces-C in a locale where the decimal delimiter is ',', a swedish locale for example. The code that validates the double and float types uses a locale-sensitive C function, strtod, which expects a ',' decimal delimiter in the context of a swedish locale. It finds a '.' decimal delimiter and throws an exception even though the '.' delimiter is what is required by the schema spec.
>-----Original Message----- >From: Gareth Reakes [mailto:[EMAIL PROTECTED] >Sent: Tuesday, October 14, 2003 11:22 AM >To: [EMAIL PROTECTED] >Subject: Re: Validating schema double and float types > > >Hi, > I have taken a quick look at the spec and it seems to >me you can >only have "." > >decimal has a lexical representation consisting of a finite-length >sequence of decimal digits (#x30-#x39) separated by a period >as a decimal >indicator. > > >Is there somewhere in the spec that says you can use ","? Or am I >misunderstanding your request? > >Gareth > > > >On Fri, 10 Oct 2003, Sweeney, Jeff wrote: > >> The checkBoundary methods of XMLDouble and XMLFloat use the >> locale-sensitive C function strtod to validate these schema primitive >> data types. This causes an incorrect exception in locales such as >> Swedish that use a comma decimal delimiter since the decimal >delimiter >> for the schema double and float types is defined by the >standard to be >> a period. >> >> I submitted a bug and a proposed patch for this. The bug number is >> 22821. I would really appreciate it if a committer could find time to >> take a look at it. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > >-- >Gareth Reakes, Head of Product Development +44-1865-203192 >DecisionSoft Limited http://www.decisionsoft.com >XML Development and Services > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
