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.

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]

Reply via email to