[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: two-toned background....
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|