[XSL-LIST Mailing List Archive Home]
displaying results in 2 columns
Subject: displaying results in 2 columns|
From: Stan Ozier <stan@xxxxxxxxxxxxxxxx>
Date: Fri, 07 Jul 2000 14:51:37 +0200
ok folks, got a situation here...
What I want to do is displaying my results in a table which has two columns
that means, in html:
my XML file looks like this:
<thing value="result 1"/>
<thing value="result 2"/>
<thing value="result 3"/>
<thing value="result 4"/>
my XSL file should be something like this:
<xsl:if test="position() mod 2 = 1">
but of course this is impossible because of the </tr><tr> couple of tags in the xsl:if statement.
I couldn't find a solution for this.
Anybody got an idea ?
PS: please don't answer that I have to change my XML file like so:
cause I don't think it's the purpose of XML to solve this kind of problems.
Thank's in advance.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list