Subject: Re: [xsl] how do you redefine a variable[off topic] From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx> Date: Wed, 28 Feb 2001 09:54:57 +0000 |
Hi Tim, > I noted your answer to Daniel about testing the value of position() > mod 2 for alternating the colors in table rows. > > What is the "mod 2" that you are refering to? 'mod' is an XPath operator. If you do: N mod M then you get the remainder of N divided by M. So doing: position() mod 2 you get either 0 (if the position() is even) or 1 (if the position() is odd). I hope that helps, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] how do you redefine a var, Tim Watts | Thread | RE: [xsl] Can I access the children, Patrick, Curtis W |
Re: [xsl] XSLT: XPath: Siblings, Jeni Tennison | Date | RE: [xsl] Path for a DTD : proposit, Paul Terray |
Month |