Subject: Re: Apply Template based on position or count
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 6 Feb 2004 22:34:06 GMT
|
<xsl:for-each select="xml/rs:data/z:row">
<xsl:if test="position() mod 2 = 1">
<xsl:if test=".">
That last xsl:if is not testing anything it will always be true.
A node set in a boolean context is true if it is non empty and the node
set selected by . always has size one so is never empty.
David
--
http://www.dcarlisle.demon.co.uk/matthew
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
Josh Canfield - Fri, 6 Feb 2004 16:11:33 -0500 (EST)
- Karl J. Stubsjoen - Fri, 6 Feb 2004 16:59:24 -0500 (EST)
- David Carlisle - Fri, 6 Feb 2004 17:34:19 -0500 (EST) <=
- Karl J. Stubsjoen - Sat, 7 Feb 2004 16:18:03 -0500 (EST)
|
|