[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] First close a tag, then open
Hi all,
I'm currently facing the following problem: I need to format some data in a list into an HTML table. However, I need 2 columns, so I thought of using a <xsl:if test="position() mod 2 = 0"> after each item. However, when making things up, I ended with the following code, which doesn't validate, for closing the tr first, and opening it there after. Check this: <xsl:template name="supply"> <table> <tr> <xsl:for-each select="itemname"> <td> *The data in here* </td> <xsl:if test="position() mod 2 = 0"> </tr> <tr> </xsl:if> </tr> </table>
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
|