[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Building a calendar
Hello, I'd like to build a calendar, a table really, by processing a set of events. My mind keeps on thinking of loops, which I'm pretty sure XSLT lacks. Outside of iteratively building the calendar within my stylesheet and checking for events on each day, I can't think of a good way of tranforming few events into many table cells. Hmm. Any ideas? I have looked at Oren Ben-Kiki's queens.xsl to see if I could find any other ideas. I see that he uses recursion to build his tables. I recently used recursion to build a table of contents, so can probably do that. Any other ideas? I envision the following markup: <CALENDAR> <MONTH start="W" end="30"> <!-- start is the day of the week that the month starts. Wednesday in this case --> <EVENT date="4"> <PARA>Some event description</PARA> </EVENT> <EVENT date="24"> <PARA>another event description</PARA> </EVENT> <!--Lots of time for vacation this month! --> </MONTH <!--May be more MONTHs --> </CALENDAR> Thanks, Richard. Richard Lander rlander at on-line-learning.com http://pdbeam.uwaterloo.ca/~rlander/ Professional XML Authoring http://www.on-line-learning.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|