[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] table column
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|