You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Joerg Heinicke <jo...@gmx.de> on 2004/04/08 01:34:13 UTC
Re: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/generation
CalendarGenerator.java
On 08.04.2004 01:18, ugo@apache.org wrote:
> ugo 2004/04/07 16:18:48
>
> Added: src/java/org/apache/cocoon/generation CalendarGenerator.java
> Log:
> A calendar generator. Might be useful for a blog or any site that has chronologically ordered resources.
What exactly does it do? The generate() is not that complex. Just an XML
structure of the current date?
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
Joerg
Re: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/generation CalendarGenerator.java
Posted by Ugo Cei <ug...@apache.org>.
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/