Convert XML to HTML Table in XSLT
问题 I'm trying to transform my XML to an HTML table but still quite confused with how to do row-column mapping using templates. My XML definition is: <Table> <Parent> <Head>Header 1</Head> <Children> <Node>Node 1</Node> <Node>Node 2</Node> <Node>Node 3</Node> </Children> </Parent> <Parent> <Head>Header 2</Head> <Children> <Node>Node 4</Node> <Node>Node 5</Node> <Node>Node 6</Node> </Children> </Parent> </Table> Expected HTML output: <table> <tr> <td>Header 1</td> <td>Header 2</td> </tr> <tr> <td