Subject: [xsl] table column From: "Fei Zheng" <Fei.Zheng@xxxxxxx> Date: Fri, 16 May 2003 16:08:19 -0400 |
I'd like to have a two column table to look like item1 item2 item3 item4 item5 item6 but the output from the following code always gives an empty cell like item1 item2 item3 item4 item5 item6 <xsl:template match="item"> <xsl:variable name="current-node" select="position()"/> <table> <tr> <td> <xsl:for-each select="."> <xsl:if test="($current-node mod 2 > 0) "> <xsl:apply-templates select="content"/> </xsl:if> </xsl:for-each> </td> <td> <xsl:for-each select="."> <xsl:if test="($current-node mod 2 = 0) "> <xsl:apply-templates select="content"/> </xsl:if> </xsl:for-each> </td> </tr> </table> </xsl:template> Is there a way to get the correct column layout? Thanks! XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Part 2 published: Style styl, Joseph Kesselman | Thread | Re: [xsl] table column, Drew McLellan |
Re: [xsl] An interesting angle on t, Mike Haarman | Date | [xsl] Xpath and for-each looping, Alan Gardner |
Month |