A document has been updated:

http://cocoon.zones.apache.org/daisy/legacydocs/535.html

Document ID: 535
Branch: main
Language: default
Name: Description of the calendar generator (unchanged)
Document Type: Document (unchanged)
Updated on: 10/14/05 12:41:45 PM
Updated by: Helma van der Linden

A new version has been created, state: publish

Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 2420 bytes (previous version: 1355 bytes)
Content diff:
(4 equal lines skipped)
    
    <p>Here is a sample output:</p>
    
--- <pre>
---   &lt;calendar:calendar 
xmlns:calendar="http://apache.org/cocoon/calendar/1.0";
+++ <pre>  &lt;calendar:calendar 
xmlns:calendar="http://apache.org/cocoon/calendar/1.0";
          year="2004" month="January" prevMonth="12" prevYear="2003"
          nextMonth="02" nextYear="2004"&gt;
        &lt;calendar:week number="1"&gt;
---       &lt;calendar:day number="1" date="January 1, 2004"/&gt;
---       &lt;calendar:day number="2" date="January 2, 2004"/&gt;
---       &lt;calendar:day number="3" date="January 3, 2004"/&gt;
---       &lt;calendar:day number="4" date="January 4, 2004"/&gt;
+++       &lt;calendar:day number="1" weekday="THURSDAY" date="January 1, 
2004"/&gt;
+++       &lt;calendar:day number="2" weekday="FRIDAY" date="January 2, 
2004"/&gt;
+++       &lt;calendar:day number="3" weekday="SATURDAY" date="January 3, 
2004"/&gt;
+++       &lt;calendar:day number="4" weekday="SUNDAY" date="January 4, 
2004"/&gt;
        &lt;/calendar:week&gt;
        ...
      &lt;/calendar:calendar&gt;
(12 equal lines skipped)
    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>
+++ format for the current locale (<em>Dateformat.LONG</em>) 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>
+++ <li>padweeks (optional): If true, the first and last incomplete weeks are 
padded
+++ with the last days of the previous month and first days of next month
+++ respectively. If false, the first and last weeks contain only the days part 
of
+++ the selected month, as shown in the sample output above. Default is "false".
+++ </li>
    </ul>
    
+++ <h1>Output</h1>
+++ 
+++ <p>The calendar generated is designed to honour the locale as much as 
possible.
+++ This means that uses the setting for the start of the week (Monday or 
Sunday),
+++ the name of the month, the dateformat and names of weekdays if part of the
+++ dateformat.<br/>
+++ However, in order to provide tests based on weekdays (e.g. to color weekend 
days
+++ different from work days), the weekday is added as the English name in 
capitals.
+++ If you want to use it for display purposes, add an <a href="daisy:463">i18n
+++ transformation</a> to convert the names into a localized version. The 
Calendar
+++ sample in the Cocoon samples has information on how to do that.</p>
+++ 
    </body>
    </html>


Fields
======
no changes

Links
=====
no changes

Custom Fields
=============
no changes

Collections
===========
no changes

Reply via email to