[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Tracking line counts uniquely by section
Schwartz, Rechell R, ALCAS wrote: > I am using the following code (adapted from code graciously provided by Ken > Holman) to generate alternate row colors for rows in a table using the > identity transformation. I would now like to take the next step and add the > following change: > > The table is comprised of multiple sections and after each section header, I > want to be able able to start the row counter back to 1 so that the line > following the section header always has the same color: The distingushing > characteristics of the section headers are that they have a class attribute > called "headerStyle", and therefore need to be exempted form receiving an odd > or even row style, and rows following the section header line all need to > have the same color. You appear to have a grouping problem. In order to privide code you have to tell what defines a section. You can look up hints how to do grouping in the XSLT FAQ: http://www.dpawson.co.uk/xsl/sect2/N4486.html or Jeni Tennisons site: http://www.jenitennison.com/xslt/grouping/index.html J.Pietschmann 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
|