[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: A Calendar Project...
Karl--
This is an interesting project. Time is a notoriously difficult thing to model, with many overlapping hierarchies (weeks and months, for example). How to write an HTML table display of a sequence of 'day' elements tagged like this: <day weekday="Tue" val="2003-07-01"/> <day weekday="Wed" val="2003-07-02"/> <day weekday="Thu" val="2003-07-03"/> <day weekday="Fri" val="2003-07-04"/> <day weekday="Sat" val="2003-07-05"/> <day weekday="Sun" val="2003-07-06"/> <day weekday="Mon" val="2003-07-07"/> <day weekday="Tue" val="2003-07-08"/> <day weekday="Wed" val="2003-07-09"/> <day weekday="Thu" val="2003-07-10"/> <day weekday="Fri" val="2003-07-11"/> ...etc. I would probably do by using a key-based grouping solution, keying each day by its first most recent Sunday (the ones in front would "fall out" and be returned with the empty string as key value), and not try to model a "week" as a group. That way you get lots more flexibility: the "current calendar" could be as extensive as you needed in any direction, without having to worry about grouping by weeks. XSLT 2 gives grouping instructions that should make all of this much easier. Cheers, Wendell At 02:34 AM 6/15/2003, you wrote: Hello, I'm embarking on a calendar project... from the ground up. So, I have the luxuray of putting it together any way I like : ) I'm trying to determine the best XML data structure to suit XSLT processing. ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== 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
|