I'm trying to transform an XML table from a larger project into an HTML table, and I'm pretty new to this XSLT game. I've found a lot of material, but I haven't seen anything that's quite like this problem so I thought I'd ask:
<table name="my table (2 columns)">
<!-- some column headers -->
<colhddef colnum="1">This is column 1</colhddef>
<colhddef colnum="2">This is column 2</colhddef>
<entry row="1" colnum="1">entry 1</entry>
<entry row="1" colnum="2">entry 2</entry>
<entry row="2" colnum="1">entry 3</entry>
<entry row="2" colnum="2">entry 4</entry>
<entry row="3" colnum="1">entry 5</entry>
<entry row="3" colnum="2">entry 6</entry>
<entry row="4" colnum="1">entry 7</entry>
<entry row="4" colnum="2">entry 8</entry>
</table>
I'm looking to wrap each set of entries with common row attributes with <tr></tr>
and it wouldn't hurt to make sure that the columns are placed in the table appropriately. This is probably much simpler than I'm making it... but any help is much appreciated!
Bonus points: where can I find good quality learning resources for XSLT? Recommended books? etc?
Thanks again in advance!