[xsl] even and odds

Subject: [xsl] even and odds
From: Yan Zhu <yan.zhu@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 21 Dec 2001 11:47:05 -0600
hey all,
    I have a quick problem.

    I have n number of nodes, I want to put those nodes as html.
    I need to take a pair at a time, and display them in a table, something like:

    <tr><td>node1</td><td>node2</td></tr>

    the problem is, when I put <tr> tag in there, I can only
    put tr in front of the odd ones, and </tr> to the end of the even ones.

    Now, I can check even/odd using postion() mode etc, but now it complains

    <td> has no end tag, must be due to the conditional statement, how do I fix

    this?

    thanks

yan


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


Current Thread