Re: Re: Grouping with XSLT
Hi Jeni, >Since you can never predict which hours are going to actually be >involved in an activity, I think you'd be safer generating these times >using a recursive template. To create a heading for every hour, you >could use something like: thanks for you help. I'm getting greedy now and want to expand the whole thing: - generate a table that has some sort of header when I do this like this <xsl:template match="/"> <html> <head><title>...</title></head> <body> <h1>...</h1> <table border="0" cellpadding="1" cellspacing="0"> <tr bgcolor="blue"> <th width="35"><div align="center"> <b>Time</b></div> </th> <th width="50"> <div align="center"> <b>Activity</b></div> </th> </tr> <xsl:call-template name="createDiary"/> </table> </body> </html> </xsl:template> I get the table header after generating the diary. Do I misunderstand something in calling the template ? - I also want to have the actual time and activity in a table; is there a trick in how to put some table row generation into a recursive function ? - for each hour I need to check if there is an activity ongoing where the start time is < than the actual hour; i.e. if an activity start at 9:15 and runs for 3 hours it should be listed in the 10:00 and 11:00 row. Is it at all possible to use the 'key' to get the values of preceeding nodes for comparison ? Michael ________________________________________________________________ Lotto online tippen! Egal zu welcher Zeit, egal von welchem Ort. Mit dem WEB.DE Lottoservice. http://tippen2.web.de/?x=13 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