This bug was already fixed in the CVS. Please see here
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14312).

Morris Kwan
XSLT Development
IBM Toronto Lab
Tel: (905)413-3729
Email: [EMAIL PROTECTED]



                                                                                       
                                            
                      "Broad, Tony"                                                    
                                            
                      <Tony.Broad@drkw.        To:       "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]>                   
                      com>                     cc:                                     
                                            
                                               Subject:  ExsltDateTime - hourInDay     
                                            
                      11/19/2002 12:13                                                 
                                            
                      PM                                                               
                                            
                      Please respond to                                                
                                            
                      xalan-dev                                                        
                                            
                                                                                       
                                            
                                                                                       
                                            



> Hello,
>
> You've probably already seen this - but I couldn't see it in bugzilla: in
> org.apache.xalan.lib.ExsltDatetime - when calling:
>
> public static XNumber hourInDay(String datetimeIn)
>
> with an xs:dateTime string, it returns NaN because it can't match the
> templates {d, t}.
>
> I believe it should be comparing the input to {dt, t}.
>
> Cheers,
>
> Tony
>
>
> --- ExsltDatetime.java.orig     Tue Nov 19 12:25:14 2002
> +++ ExsltDatetime.java  Tue Nov 19 12:13:09 2002
> @@ -525,7 +525,7 @@
>        if (datetime == null)
>          return new XNumber(Double.NaN);
>
> -      String[] formats = {d, t};
> +      String[] formats = {dt, t};
>        return new XNumber(getNumber(datetime, formats,
> Calendar.HOUR_OF_DAY));
>      }
>


----------------------------------------------------------------------
If you have received this e-mail in error or wish to read our e-mail
disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender.
----------------------------------------------------------------------




Reply via email to