| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <html> |
| <head> |
| <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>Description of the calendar generator</title> |
| <link href="http://purl.org/DC/elements/1.0/" rel="schema.DC"> |
| <meta content="The Cocoon Community" name="DC.Creator"> |
| </head> |
| <body> |
| |
| <h1>Calendar Generator</h1> |
| |
| <p>Here is a sample output:</p> |
| |
| <pre class="code"> |
| <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> |
| </pre> |
| |
| <p>The <em>src</em> parameter is ignored.</p> |
| |
| |
| <h1>Configuration</h1> |
| |
| <p>Configuration options:</p> |
| |
| <ul> |
| |
| <li> |
| <em>month</em> (optional) : Sets the month for the calendar (January is 1). Default is the current month.</li> |
| |
| <li> |
| <em>year</em> (optional) : Sets the year for the calendar. Default is the current year.</li> |
| |
| <li> |
| <em>dateFormat</em> (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.</li> |
| |
| <li> |
| <em>lang</em> (optional) : Sets the ISO language code for determining the locale.</li> |
| |
| <li> |
| <em>country</em> (optional) : Sets the ISO country code for determining the locale.</li> |
| |
| </ul> |
| |
| |
| </body> |
| </html> |