You are absolutely right. I just fixed it: now "2e2" is always invalid.
Thx.

Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]



                                                                                
                                   
                    John Utz                                                    
                                   
                    <[EMAIL PROTECTED]       To:     [EMAIL PROTECTED]          
                            
                    sh.com>              cc:                                    
                                   
                                         Subject:     Re: is "2e2" legal 
integer value?                            
                    04/17/2002                                                  
                                   
                    11:21 AM                                                    
                                   
                    Please respond                                              
                                   
                    to                                                          
                                   
                    xerces-j-user                                               
                                   
                                                                                
                                   
                                                                                
                                   



hi sandy;

On Tue, 16 Apr 2002 [EMAIL PROTECTED] wrote:

> Sorry for the late response. Yes, you are right: "2e2" is not a valid
> decimal, hence not a valid integer.
>
> I bet you are using a 1.3+ JDK. Xerces uses the BigDecimal class to
> parse/represent decimal values. JDK 1.2 and earlier versions don't
> recognize things like "2e2" as BigDecimal, but from 1.3, "2e2" is valid.
>
> So we have a decision to make: either write our own decimal-parsing code,
> or continue to use BigDecimal and leave it as a WONTFIX bug.

umm, leaving it as a WONTFIX is a backdoor way of breaking support for 1.2
and 1.1.8.

the whole point of XML is to make data platform independent. so if '2e2'
isnt valid on all platforms, it shouldnt be valid on *any* platform.



> Cheers,
> Sandy Gao
> Software Developer, IBM Canada
> (1-905) 413-3255
> [EMAIL PROTECTED]
>
>
>
>

>                     "�������

>                     �����"               To:
[EMAIL PROTECTED]
>                     <eugene-ruban@       cc:

>                     mail.ru>             Subject:     is "2e2" legal
integer value?
>

>                     04/09/2002

>                     01:05 AM

>                     Please respond

>                     to

>                     xerces-j-user

>

>

>
>
>
> Hello.
>
> I declare an element of type "integer" which is described
> in "XML Schema Part 2: Datatypes". Then, an element
> information item is set to "2e2". Validation is passed.
> I think that is incorrect behaviour,
> because the specification reads:
>
> 3.3.13.1 Lexical representation
> integer has a lexical representation consisting of a
> finite-length sequence of decimal digits (#x30-#x39)
> with an optional leading sign. If the sign is omitted,
> "+" is assumed. For example: -1, 0, 12678967543233,
> +100000.
>
> am I right?
>
> Thanks.
> -Evgueni
>
>
> ---------------------------------------------------------------------
> 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]
>
>


---------------------------------------------------------------------
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]

Reply via email to