Re: XSL не понимает числа в формате [мантисса]e[логарифм]
От: Fomka Россия  
Дата: 22.04.04 08:36
Оценка:
Здравствуйте, OriginalZealot, Вы писали:

В спецификации по этому поводу сказано, что такая форма записи(IEEE 754)
OZ>поддерживается.

В спецификации по этому поводу сказано, что

Function: number number(object?) 

The number function converts its argument to a number as follows:

1. a string that consists of optional whitespace followed by an optional minus sign followed by a Number followed by whitespace is converted to the IEEE 754 number that is nearest (according to the IEEE 754 round-to-nearest rule) to the mathematical value represented by the string; any other string is converted to NaN
2. boolean true is converted to 1; boolean false is converted to 0
3. A node-set is first converted to a string as if by a call to the string function and then converted in the same way as a string argument
4. an object of a type other than the four basic types is converted to a number in a way that is dependent on that type

А Number — это
Number    ::=    Digits ('.' Digits?)? | '.' Digits  
Digits    ::=    [0-9]+


Так что про экспоненциальную форму ничего не сказано. MSXML четко говорит NaN на экспоненциальную запись, а вот Built-In engine в XML SPY нормально переводит в число.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.