Subject: Re: [xsl] every tenth row change bgcolor From: Larry Garfield <larry@xxxxxxxxxxxxxxxx> Date: Mon, 09 Jun 2003 04:52:52 -0500 |
Ken:
So, you will see below a working version where I tighten up the node processing by pushing only the nodes that are to be affected by the position() function in the current node list, and the counting modulo arithmetic is based on the grouping of 10 Rows, not the combination of 10 Rows and 10 Text nodes.
I hope this helps.
............... Ken
Hi Ken,
Sorry to be picky, but here you mention 'pushing' nodes to a template using <xsl:apply-templates select="foo"/>, I've always regarded that as pulling... is that right? I've always thought the only way you can use 'push' is through a basic <xsl:apply-templates/> where the next node to process is decided by document order, with any select statement (apply-templates or for-each) pulling nodes through (e.g. the nodes to process are decided by the stylesheet).
I may be missing one of the fundamentals here :)
-- Larry Garfield AIM: LOLG42 larry@xxxxxxxxxxxxxxxx ICQ: 6817012
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] every tenth row change bg, Andrew Welch | Thread | Re: [xsl] every tenth row change bg, Wendell Piez |
Re: [xsl] When is a variable a node, Simon . Fairey | Date | Re: [xsl] When is a variable a node, David Carlisle |
Month |