RE: [xsl] conditional html

Subject: RE: [xsl] conditional html
From: "Sadasivakurup, Jiji L." <Jiji_Sadasivakurup@xxxxxxxxxxxxx>
Date: Tue, 7 May 2002 15:03:33 -0400
This worked for me. 

<xsl:template match="whatever" > 
	<xsl:apply-templates select="somenode[position() mod 6 = 1]"
mode="row" />

<xsl:template match="somenode" mode="row" > 
		<xsl:apply-templates  select=". |
following-sibling::somenode[position() &lt; 6]"  mode="column"  /> 

<xsl:template match="somenode" mode="column" > 

-----Original Message-----
From: Paul Knepper [mailto:pknepper@xxxxxxxxxxxxx]
Sent: Tuesday, May 07, 2002 2:50 PM
To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
Subject: [xsl] conditional html

How can I insert conditional html?  I want to iterate over a set of nodes
("rows" in the example below) and format a table row for every sixth item.

I tried the following, but of course its an unbalanced xml file:

<xsl:for-each select="rows">
  <xsl:if test="(position() mod 6) = 1">

  <xsl:value-of select="someNode"/>

  <xsl:if test="(position() mod 6) = 0">

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread