You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Thomas Poe <to...@peoplepc.com> on 2000/03/01 00:54:50 UTC

Re: Best approach to display calendar

Hello Steve:  On your Calendar project, it seems to me, each cell in the
table receives an "event", even if no "content" is present.  Is it too
awkward to show the entire day with each view?  If not, maybe you could
create your own  "empty" tags as a default.  Just a thought, Tom
----- Original Message -----
From: "Steve Belt" <sb...@velos.com>
To: <co...@xml.apache.org>
Sent: Tuesday, February 29, 2000 11:28 AM
Subject: Best approach to display calendar


> Hello:
>
> First, I'd like to say how much I am impressed with Cocoon. I really wowed
> some people in my company when I showed them how Cocoon could feed the
same
> XML to both a web browser and a WAP device (Nokia Emulator), reformatted
for
> each.
>
> I am trying to use Cocoon to display a calendar using an XML provided by
my
> database. I would like to display the events, in HTML, formatted as you
see
> in most scheduling applications (Table listing all hours of the day, then
> showing events, if any, in the adjoining cell). I can create an XSL which
> will create a table row for each event, however, I do not know how I can
> display hours and cells which have no events to them. The XSL examples I
can
> find, in a manner of speaking, are "triggered" by elements in the XML; I,
on
> the other hand, need to display tags
>
> As I read through the documentation on Cocoon, I see several possible
> choices:
>
>  I could manipulate my XML to match my calendar - ie, include nodes for
> hours that do not have events. However, this makes my XML less generic.
>
> I could use XSP to manipulate the original XML to insert the empty nodes,
> but I am not fluent in XSP, and am having trouble seeing how to do this.
>
> Finally, perhaps this can all be handled by the XSL. However, as you can
no
> doubt tell, I still have much to learn, and I cannot find any examples
which
> show me how to accomplish this. Also, I want to be able to change my time
> intervals - ie 1-cell/hour, or 1-cell/half-hour, etc
>
> So, as I started out saying, I want to use Cocoon to provide this page.
> Anybody have any suggestions on how I should proceed? Which of Cocoon's
> technologies should I be concentrating on? Any example source code (I saw
> Jetspeed, but They are using Turbine)?
>
> Thanks in Advance,
>
> Steve
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>