|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: simulating for with foreach
> Do I have to use <xsl:if test="position() mod 4 = 1", or in addition to the comments in the reply I just sent, you don't need to use xsl:if, just put it in a predicate in the select <xsl:for-each select="node[position() mod 4 = 1]"> it's usually preferable just to select the nodes you want rather than select everything and then use an xsl:if as then within the for-each position() goes in the sequence 1,2,3,4... numbering the items that are actually being selected, which is often useful. David
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






