apache > cocoon
 
Font size:      

Description of the calendar generator (2.1 legacy document)

Warning
This document was copied as is from the Cocoon 2.1 documentation, but has not yet been fully reviewed or moved to its new home.

Calendar Generator

Here is a sample output:

  <calendar:calendar xmlns:calendar="http://apache.org/cocoon/calendar/1.0"
      year="2004" month="January" prevMonth="12" prevYear="2003"
      nextMonth="02" nextYear="2004">
    <calendar:week number="1">
      <calendar:day number="1" date="January 1, 2004"/>
      <calendar:day number="2" date="January 2, 2004"/>
      <calendar:day number="3" date="January 3, 2004"/>
      <calendar:day number="4" date="January 4, 2004"/>
    </calendar:week>
    ...
  </calendar:calendar>

The src parameter is ignored.

Configuration

Configuration options:

  • month (optional) : Sets the month for the calendar (January is 1). Default is the current month.
  • year (optional) : Sets the year for the calendar. Default is the current year.
  • dateFormat (optional) : Sets the format for the date attribute of each node, as described in java.text.SimpleDateFormat. If unset, the default format for the current locale will be used.
  • lang (optional) : Sets the ISO language code for determining the locale.
  • country (optional) : Sets the ISO country code for determining the locale.

Comments

add your comments