This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
two columns in a table from one
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] two columns in a table from one
- From: "Matthew Smith" <msmith at dork dot com>
- Date: Mon, 30 Jul 2001 20:30:12 -0400
- References: <200107301947.PAA01325@biglist.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
How can I turn a list of like named nodes into a two column html table with
xslt?
Here's some sample xml and desired html:
<!-- XML -->
<people>
<person>John</person>
<person>Suzy</person>
<person>Tod</person>
<person>Mark</person>
<person>Matt</person>
</people>
<!-- HTML -->
<table>
<tr><td>John</td><td>Suzy</td></tr>
<tr><td>Tod</td><td>Mark</td></tr>
<tr><td>Matt</td><td></td></tr>
</table>
The empty td element in the final row of odd numbered lists isn't
imperative, but would be nice.
Thanks, Matt
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list