Hi,

Here some problems I encountered when using the calendar generator:

- The month attribute within the root element contains the previous month;
- The prevYear and nextYear attributes are set to the current year;
- The generator adds days from the end of the previous month, but not the
days from the beginning of the following month;
- The full date is off by one day;
- The padWeeks option doesn't seem to work;
- Would be nice if the generator could return the weekday strings.

See my post below for more information.  If I look at the samples/cal, I
have the same problem (see the attached file). Maybe I should open a bug in
bugzilla?

Thanks,

Eric

-----Original Message-----
From: JACOB, ERIC [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 26, 2004 12:15 PM
To: [EMAIL PROTECTED]
Subject: Question about the Calendar Generator

Hi,

I got the following output with the CalendarGenerator for the current month:

<calendar:calendar year="2004" month="July" prevYear="2004" prevMonth="07"
nextYear="2004" nextMonth="09"
xmlns:calendar="http://apache.org/cocoon/calendar/1.0";>
<calendar:week number="1">
� <calendar:day number="1" date="July 31, 2004" /> 
� <calendar:day number="2" date="August 1, 2004" /> 
� <calendar:day number="3" date="August 2, 2004" /> 
� <calendar:day number="4" date="August 3, 2004" /> 
� <calendar:day number="5" date="August 4, 2004" /> 
� <calendar:day number="6" date="August 5, 2004" /> 
� <calendar:day number="7" date="August 6, 2004" /> 
</calendar:week>
<calendar:week number="2">
� <calendar:day number="8" date="August 7, 2004" /> 
� <calendar:day number="9" date="August 8, 2004" /> 
� <calendar:day number="10" date="August 9, 2004" /> 
� <calendar:day number="11" date="August 10, 2004" /> 
� <calendar:day number="12" date="August 11, 2004" /> 
� <calendar:day number="13" date="August 12, 2004" /> 
� <calendar:day number="14" date="August 13, 2004" /> 
</calendar:week>
<calendar:week number="3">
� <calendar:day number="15" date="August 14, 2004" /> 
� <calendar:day number="16" date="August 15, 2004" /> 
� <calendar:day number="17" date="August 16, 2004" /> 
� <calendar:day number="18" date="August 17, 2004" /> 
� <calendar:day number="19" date="August 18, 2004" /> 
� <calendar:day number="20" date="August 19, 2004" /> 
� <calendar:day number="21" date="August 20, 2004" /> 
</calendar:week>
<calendar:week number="4">
� <calendar:day number="22" date="August 21, 2004" /> 
� <calendar:day number="23" date="August 22, 2004" /> 
� <calendar:day number="24" date="August 23, 2004" /> 
� <calendar:day number="25" date="August 24, 2004" /> 
� <calendar:day number="26" date="August 25, 2004" /> 
� <calendar:day number="27" date="August 26, 2004" /> 
� <calendar:day number="28" date="August 27, 2004" /> 
</calendar:week>
<calendar:week number="5">
� <calendar:day number="29" date="August 28, 2004" /> 
� <calendar:day number="30" date="August 29, 2004" /> 
� <calendar:day number="31" date="August 30, 2004" /> 
</calendar:week>
</calendar:calendar>

Here some questions which come to me:

- As you can see, the month attribute within the root element contains July
(it should be August, no?).
- prevYear and nextYear attributes are set to 2004 (should be 2003 and 2005,
right?).
- And why month is not in the same format as prevYear and nextYear?

Thanks,

Eric



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Title: Calendar for July 2004
July 2004
SundayMondayTuesdayWednesdayThursdayFridaySaturday
1

Saturday, July 31 2004

2

Sunday, August 1 2004

3

Monday, August 2 2004

4

Tuesday, August 3 2004

5

Wednesday, August 4 2004

6

Thursday, August 5 2004

7

Friday, August 6 2004

8

Saturday, August 7 2004

9

Sunday, August 8 2004

10

Monday, August 9 2004

11

Tuesday, August 10 2004

12

Wednesday, August 11 2004

13

Thursday, August 12 2004

14

Friday, August 13 2004

15

Saturday, August 14 2004

16

Sunday, August 15 2004

17

Monday, August 16 2004

18

Tuesday, August 17 2004

19

Wednesday, August 18 2004

20

Thursday, August 19 2004

21

Friday, August 20 2004

22

Saturday, August 21 2004

23

Sunday, August 22 2004

24

Monday, August 23 2004

25

Tuesday, August 24 2004

26

Wednesday, August 25 2004

27

Thursday, August 26 2004

28

Friday, August 27 2004

29

Saturday, August 28 2004

30

Sunday, August 29 2004

31

Monday, August 30 2004

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to