|
Subject: Re: [xsl] 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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Apply Template based on p, Karl J. Stubsjoen | Thread | Re: [xsl] Apply Template based on p, Karl J. Stubsjoen |
| Re: [xsl] Apply Template based on p, Karl J. Stubsjoen | Date | [xsl] Processing CDATA in input XML, Philip Puccio |
| Month |