*
The moose likes XML and Related Technologies and the fly likes xml calendar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml calendar" Watch "xml calendar" New topic
Author

xml calendar

Rahesh Kumar
Ranch Hand

Joined: Sep 10, 2004
Posts: 53
hi all,

This is my problem,I am not provided with any xml.The final aim is, xml should have my contents for calendar and the calendar should have four views,daily,weekly,monthly and yearly,these views should be in different xsls.when user clicks on daily view,the xml and the corresponding xsls should be dyanamically matched,similar for other views.My problem is how the xml should be framed and the xsls,can anyone suggest me regarding this.


Thanx
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Its a good problem but XML is not necessarily a solution for it, there exist many solutions not based on xml.

BUT have you checked the project from w3c called Caltrop ? it give you an idea.


Spritle Software Blogs
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Check this as well for design concept http://www.w3.org/2001/sw/
Rahesh Kumar
Ranch Hand

Joined: Sep 10, 2004
Posts: 53
hi Balaji,
thanx for ur reply,can i get some clear solution,as it is recommended that i should do it using xml and xsls

Thanx
Rahesh
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
The link i gave you is based on xml and xsl only.
If i don't have any clear or direct solution for this problem.
Max Habibi
town drunk
( and author)
Sheriff

Joined: Jun 27, 2002
Posts: 4118
Hi Rahesh,

A couple of questions, so we can focus our answer a little bit better. Have you used XML and/or xslt in the past? Is this a school assignment, so you have to do it this way, or is a work project, where you're just looking at different paths? How familiar are you with Java in general?

Thanks,
M


Java Regular Expressions
Rahesh Kumar
Ranch Hand

Joined: Sep 10, 2004
Posts: 53
Hi Balaji and Max,
Thanx for ypur replies yaar,i said i couldnt understand it clearly,ya Max its part of my project work yaar,thats why i am sticking to xml and xsls as i am new to these java technologies.Sorry,if i have posted wrongly yaar.
Thanx
Rahesh
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
Hi Rahesh,

What kind of data is your calendar expected to show (besides perhaps day of week)? Data for how many years will be stored? Can we assume that your "view" program will somehow receive a parameter from a user with the exact date for "daily" and "weekly" views, and with a month/year for the other two views?


Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
Rahesh Kumar
Ranch Hand

Joined: Sep 10, 2004
Posts: 53
HI,
Thanx for ur reply.
whenever an user logs in,he will be shown the entire months display in the side,with the options provided to view it daily,weekly and annually,this is an application to show the schedule he has for the corresponding views.so whenever the user clicks on that particular date,he is to be shown the schedule for that perticular date,and correspondingly for his weekly and annually and monthly views(so we are getting input from the user for these u r right).hope this explains my problem exactly,
Expecting your reply
Thanx in advance
Rahesh
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
Hi Rahesh,
Not sure what exactly your "schedule" information is, but your XML could be like this:


In your XSLT you declare parameters:



and then iterate through you information using these parameters:
For example:



Hope this helps.
[ October 01, 2004: Message edited by: Mapraputa Is ]
 
Don't get me started about those stupid light bulbs.
 
subject: xml calendar