[xsl] First close a tag, then open

Subject: [xsl] First close a tag, then open
From: Patrick van Halderen <patrick@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 3 Dec 2003 16:53:22 +0100
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">



<xsl:for-each select="itemname">

*The data in here*

<xsl:if test="position() mod 2 = 0">




Does anyone know how to solve this? Thanks, Patrick

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread