I have an interesting XSL problem that I've been scratching my head on for a little while, and am no closer to solving than I was before. I was hoping for some advise on how to do this.I am trying to take a table stored in XML, and translate it to a table stored in RTF, but the trick is, I want to take the headings of the table and put it next to each column of the data in that column.For example ... I have some XML input that reads something like this:<table> <thead> <tr> <td> <p><strong>Year</strong></p></td> <td> <p><strong>U.S. Population</strong></p></td> <td> <p><strong>Unemployment Percentage</strong></p></td> </tr> </thead> <tr> <td>1929</td> <td>88,010,000</td> <td>3.14</td> </tr> <tr> <td>1930</td> <td>89,550,000</td> <td>8.67</td> </tr></table>And I want to transform it into a table in RTF or HTML so it reads like:Year: 1929 | U.S. Population: 88,010,000 | Unemployment Percentage: 3.14 |Year: 1930 | U.S. Population: 89,550,000 | Unemployment Percentage: 8.67 |My question is not how to do the RTF or HTML formatting for the table, but how in XSL can I grab the table column headers in the <thead> portion of the table, and apply them to the appropriate column of the table data below it?Of course, I need a generic solution that will handle any number of columns and any number of rows, but we can assume that there is one heading row at the top and that heading will apply to all columns below it.Is this possible in XSL? And if so, how?I admit I'm not an XSL expert, but I do understand the basics reasonably well, but I just feel there is some trick that I'm missing to accomplish this task.Thanks.Robert