[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] conditional html
Subject: [xsl] conditional html From: Paul Knepper <pknepper@xxxxxxxxxxxxx> Date: Tue, 7 May 2002 11:49:49 -0700 |
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"> <tr> </xsl:if> <xsl:value-of select="someNode"/> <xsl:if test="(position() mod 6) = 0"> </tr> </xsl:if> </xsl:for-each> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: Pad a string, Eric Vitiello | Thread | RE: [xsl] conditional html, Sadasivakurup, Jiji |
Re: [xsl] find out if an attribute , Roma Yankin | Date | Re: [xsl] question about javascript, Thomas B. Passin |
Month |
Keywords