Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XSL > HTML table building question [Thread Next] Re: XSL > HTML table building questionTo: NULL Date: 7/1/2004 10:12:00 AM John Kooistra wrote: > Igor from developersdex.com gave me this solution which worked well: > <xsl:for-each select="course"> > <xsl:if test="position() mod 6 = 1"> > <tr> > <xsl:variable name="pos" select="position()"/> > <xsl:for-each select="../course[(position() >= $pos) > and (position() < ($pos + 6))]"> > <td> > SOME DATA > </td> > </xsl:for-each> > </tr> > </xsl:if> > </xsl:for-each> That is well-formed and if the XSLT does what you want then use it. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
