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

Re: Grouping into a table cell

Subject: Re: Grouping into a table cell
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Mon, 10 May 2004 22:21:19 +0100
grouping table cells html
Hi Cihan,

> I'm trying to group timezone information into a table. The problem I
> am having is the looping through the values of same time zone(ET),
> same day(Monday), sorting(start with 12:00AM for AM, and start for
> 12:00PM for PM column) and filling them into two columns one of
> which AM values only, and second PM values only.

Can you show us exactly what you want the result to look like for the
source XML you've given? What goes in the different rows of the
tables? Different programs? Different timezones?

I'm sure that what you want to do is doable. Possibly you need to do
some Muenchian grouping as described at
http://www.jenitennison.com/xslt/grouping/muenchian.html with a
compound key such as:

<xsl:key name="airings" match="airing"
         use="concat(@day, parent::timezone/@value)" />

and you'll certainly need to use the substring() function to work out
which values are a.m. and which p.m., and to get the sorting to work,
but without knowing precisely what output you want it's hard to tell
you exactly what to do.



Jeni Tennison

Current Thread


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.
First Name
Last Name
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.