WebService: xsd:double +Inf should be xsd:double INF

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

WebService: xsd:double +Inf should be xsd:double INF

bonndias-2
Hi,
in a WebService response a Smalltalk Float class>>#infinity is encoded as <dictValue xsi:type="xsd:double">+Inf</dictValue>, which is the Smalltalk String representation. But W3C expects this to be <dictValue xsi:type="xsd:double">INF</dictValue> . Am I wrong or ist this a bug in VA Smalltalk 8.03?

Excerp from:

XML Schema Part 2: Datatypes Second Edition


3.2.5.1 Lexical representation

double values have a lexical representation consisting of a mantissa followed, optionally, by the character "E" or "e", followed by an exponent. The exponent ·must· be an integer. The mantissa must be a decimal number. The representations for exponent and mantissa must follow the lexical rules for integer and decimal. If the "E" or "e" and the following exponent are omitted, an exponent value of 0 is assumed.

The special values positive and negative infinity and not-a-number have lexical representations INF, -INF and NaN, respectively. Lexical representations for zero may take a positive or negative sign.

For example, -1E4, 1267.43233E12, 12.78e-2, 12 , -0, 0 and INF are all legal literals for double.


--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
dfe
Reply | Threaded
Open this post in threaded view
|

Re: WebService: xsd:double +Inf should be xsd:double INF

dfe
We agree that it is a bug, and it is still present in 8.6.   We've opened case 56092 to address the issue you found.

On Thursday, September 4, 2014 5:44:23 AM UTC-4, bonndias wrote:
Hi,
in a WebService response a Smalltalk Float class>>#infinity is encoded as <dictValue xsi:type="xsd:double">+Inf</dictValue>, which is the Smalltalk String representation. But W3C expects this to be <dictValue xsi:type="xsd:double">INF</dictValue> . Am I wrong or ist this a bug in VA Smalltalk 8.03?

Excerp from:

XML Schema Part 2: Datatypes Second Edition


3.2.5.1 Lexical representation

double values have a lexical representation consisting of a mantissa followed, optionally, by the character "E" or "e", followed by an exponent. The exponent <a href="http://www.w3.org/TR/xmlschema-2/#dt-must" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2FTR%2Fxmlschema-2%2F%23dt-must\46sa\75D\46sntz\0751\46usg\75AFQjCNFY-I9AYDF8-1fUFpl_GzvDau4TCQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2FTR%2Fxmlschema-2%2F%23dt-must\46sa\75D\46sntz\0751\46usg\75AFQjCNFY-I9AYDF8-1fUFpl_GzvDau4TCQ';return true;">·must· be an integer. The mantissa must be a decimal number. The representations for exponent and mantissa must follow the lexical rules for <a href="http://www.w3.org/TR/xmlschema-2/#integer" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2FTR%2Fxmlschema-2%2F%23integer\46sa\75D\46sntz\0751\46usg\75AFQjCNEw-kLiW7UYpNAFwHa_IJ4qsrH3Sw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2FTR%2Fxmlschema-2%2F%23integer\46sa\75D\46sntz\0751\46usg\75AFQjCNEw-kLiW7UYpNAFwHa_IJ4qsrH3Sw';return true;">integer and <a href="http://www.w3.org/TR/xmlschema-2/#decimal" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2FTR%2Fxmlschema-2%2F%23decimal\46sa\75D\46sntz\0751\46usg\75AFQjCNGatqIOk8PmOhIVw3S0h2InZW70xQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.w3.org%2FTR%2Fxmlschema-2%2F%23decimal\46sa\75D\46sntz\0751\46usg\75AFQjCNGatqIOk8PmOhIVw3S0h2InZW70xQ';return true;">decimal. If the "E" or "e" and the following exponent are omitted, an exponent value of 0 is assumed.

The special values positive and negative infinity and not-a-number have lexical representations INF, -INF and NaN, respectively. Lexical representations for zero may take a positive or negative sign.

For example, -1E4, 1267.43233E12, 12.78e-2, 12 , -0, 0 and INF are all legal literals for double.


--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.