You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ernesto Echeverría <er...@telemovil.net> on 2004/08/28 04:39:56 UTC

RE: [cocoon] RE: Question about the Calendar Generator

Same thing happens to me with Cocoon's latest version, but then I assumed it
had to do with localization problems. 

However other readers of this list said they had no problem whatsoever...

I think it's a bug somehow. But then is it up to Cocoon's bugzilla list or
does it have to do with the provider for that particular code?

José Ernesto Echeverría
ernestoe@telemovil.net
 

-----Original Message-----
From: JACOB, ERIC [mailto:eric.jacob@bell.ca] 
Sent: Viernes, 27 de Agosto de 2004 06:27 a.m.
To: users@cocoon.apache.org; u.cei@cbim.it
Subject: [cocoon] RE: Question about the Calendar Generator

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:eric.jacob@bell.ca]
Sent: Thursday, August 26, 2004 12:15 PM
To: users@cocoon.apache.org
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org