[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] two columns in a table from one


Subject: [xsl] two columns in a table from one
From: "Matthew Smith" <msmith@xxxxxxxx>
Date: Mon, 30 Jul 2001 20:30:12 -0400

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



Current Thread
Keywords
xml