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

RE: Alternating table row colors with recursion

Subject: RE: Alternating table row colors with recursion
From: "Clapham, Paul" <pclapham@xxxxxxxxxxxxx>
Date: Tue, 28 Nov 2000 11:47:07 -0800
table row lines
>> I've given up on a similar case where my normal rows,
>> which I can count, have group headers interspersed which mess up the
count.
>> 

>Why would intersperd headers mess up counting?
>You'd just need a select attribute that selects whatever you wanted to
>count, wouldn't you? (eg the count attribute of xsl:number)

I had a stylesheet that output data in groups, with the group header on one
line and the group details on the following lines.  For this it's possible
that there's a count function that tells you how many lines have passed
(e.g. number of details earlier in this group, plus number of headers
earlier, plus total number of details in earlier groups), although I had to
use xsl:sort to get the right sequence, so the preceding axis probably
wouldn't have worked.  But then I had different types of grouped details,
handled by different templates.  And then some of the details required two
lines rather than one.  And then some of the details had addenda with a
varying number of lines...

It's still possible that there's a function to count those lines so the
output HTML could have alternating colours.  It's even possible that I could
have found it, given enough time.  But if I had, I wouldn't have been able
to understand it two months later.


 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.