Il giorno 08/apr/04, alle 01:34, Joerg Heinicke ha scritto:

What exactly does it do? The generate() is not that complex. Just an XML structure of the current date?

It generates an XML representation of any given month. If you're familiar with the old Unix "cal" program, it does just that. I'm now going to prepare a little sample with a stylesheet that generates an HTML calendar.


As it stands, of course, it's not that useful. My plan is to make it easily extensible, so that, if you have any kind of resource with a date, you can attach an XML represantation of it beneath the corresponding calendar:day node:

<calendar:day date="8 Apr 2004">
  <item>
    <title>A sample dated item</title>
    <pubdate>2004-04-08</pubDate>
  </item>
</calendar:day>

There was a thread on users list about a "real" CalendarGenerator based on an external format like iCal:
http://thread.gmane.org/gmane.text.xml.cocoon.user/34157

I gave a look at vCal/xCal, but I wanted something that could be easily transformed via XSL-T into something like this [1], and it didn't seem that *Cal could fit the bill.


Ugo

[1]: http://diveintomark.org/archives/2004/04/



Reply via email to