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

RE: two-toned background....

Subject: RE: two-toned background....
From: "Dickson, Dan" <Dan.Dickson@xxxxxxxxx>
Date: Tue, 29 Aug 2000 13:11:58 -0400
two toned backgrounds
i am formatting a report so that it has a two-colored background,
alternating grey & white using two CSS classnames class1 and class2 in HTML
table <TD> tags.

to get class1 or class2 in my XSL i do: select="position() mod 2" in the
attribute of the TD tag and paste the 1 or 2 to the word 'class'

the problem i am having is that my XML structure is about 4 levels deep, and
I need to know the position() for members that are BELOW the first <TD> in
each row (if that makes any sense...in other words i need to put the same
position() mod value for each <TD> in a given <TR>, but how can i "carry"
this value between different nodesets in the XML document hierarchy?).

ok, i'm probably not wording this correctly, but has anyone tried to do this
sort of thing before?

any help appreciated.
Dan


 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.