The exslt  site
(http://www.exslt.org/date/functions/month-in-year/index.html) does not
specify whether the number should be 0-11 or 1-12. Right now 0-11 is used
just because the return value of java.util.Calendar.get(MONTH) falls in the
0-11 range. If you can figure out the correct behavior from the EXSLT
people, I will make the change. Thanks.

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



                                                                                       
                                             
                      "Foxy Shadis"                                                    
                                             
                      <foxyshadis@hotma        To:       [EMAIL PROTECTED]      
                                             
                      il.com>                  cc:                                     
                                             
                                               Subject:  datetime:month-in-year 
function                                            
                      02/01/2003 07:35                                                 
                                             
                      PM                                                               
                                             
                      Please respond to                                                
                                             
                      xalan-dev                                                        
                                             
                                                                                       
                                             
                                                                                       
                                             



I cannot access the ISO site to check on this, so I thought I would ask
here. Is the month-in-year function supposed to return values on a 0-11
scale? For instance, month-in-year('0001-01-01') returns '00', and so on. I

don't think it should be that way, because both year and day return in a
1-xxx scale.

The month-name function would break in the case of
month-name(month-in-year('0001-01-01')) (obviously a rhetorical example,
but
still valid), and return incorrectly for other months. In fact, any use
requires an addition of one.

I'm not putting this in bugzilla just because I'm not sure if it's a bug.
If
it is, I'll post it.

Foxy

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail




Reply via email to