[Home] [By Thread] [By Date] [Recent Entries]
Thank you, the problem was in the <xsl:strip-space/> which I accidently
omitted when copying part of an existing file. I then got side tracked
trying to fix the problem and lost the plot. I wanted to achieve a three
column output and I got it now. In a previous question on multiple column
output it was mentioned that is in the FAQs somewhere but I couldn't find
it, so here is the code, it can easily be adjusted to any number of columns
by changing the '3' in 'mod 3 = 1'.
<xsl:template select="form[position() mod 3 = 1"> <xsl:variable name="formPosition" select="position()"/> <tr> <td><xsl:value-of select="./orgcode"/></td> <td><xsl:value-of select="//form[postion() = $formPosition + 1]/@orgcode"/></td> <td><xsl:value-of select="//form[postion() = $formPosition + 2]/@orgcode"/></td> </tr> </template> ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



