Subject: Re: Re: [xsl] Grouping with XSLT From: "Michael Geiling" <mgeiling@xxxxxx> Date: Fri, 2 Nov 2001 11:15:15 +0100 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to read the encoding , Robert Stuart | Thread | Re: [xsl] Grouping with XSLT, Jeni Tennison |
Re: [xsl] How to read the encoding , Peter Flynn | Date | [xsl] How to program automatical re, stig . garberg |
Month |