This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xml calendar

 
Rahesh Kumar
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this as well for design concept http://www.w3.org/2001/sw/
 
Rahesh Kumar
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rahesh Kumar
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10065
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Rahesh Kumar
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10065
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic