This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Alternating Between Values


Pass a parameter in the apply templates evaluation.  If the present value is
one color then the value you place in the parameter to next level of
template is the alternate and if it is the alternate already then pass the
default.  This would be done at the level of the templates that is
evaluating over the rows of your table (not evaluating the interior values
of the elements of the table row).
Frank
Dr. Frank Mabry
Dept. of EE&CS, U.S. Military Academy
West Point, NY 10996
email: df6954@eecs1.eecs.usma.edu
Phone: (914) 938-2960


		-----Original Message-----
		From:	Stallion, Jason (Cahners)
[mailto:JStallion@cahners.com]
		Sent:	Wednesday, May 17, 2000 10:24 AM
		To:	'xsl-list@mulberrytech.com'
		Subject:	Alternating Between Values

		Is it possible to express, in XSL-T, alternate colors on
TABLE rows?

		I considered a global value that could be checked at each
new row, but my
		understanding is that a global variable, once set, cannot be
changed.

		Does anyone have any tips for adding a background color to
every *alternate*
		TABLE row in the result tree?

		Thanks to anyone who can share some insights on this.



		 XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]