[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: Grouping with XSLT

Subject: Re: Re: Grouping with XSLT
From: "Michael Geiling" <mgeiling@xxxxxx>
Date: Fri, 2 Nov 2001 11:15:15 +0100
xslt table heading
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.