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: Detecting every other node?


> I am trying to apply a different template for every other row

This is the n=2 case of an increasingly often asked question.

The answer that has been given several times in the last few weeks is:
test using position() mod n.  See the archive, and perhaps the faq, for
lots of good examples and tricks.

 Steve


 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]