This should be so simple and yet I have racked my brain over it for hours.
Essentially, what I am looking to accomplish is building out three columns within a table. For example:
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td>Section One</td>
<td>Section Four</td>
<td>Section Seven</td>
</tr>
<tr>
<tdSection Two</td>
<td>Section Five</td>
<td>Section Eight</td>
</tr>
<tr>
<td>Section Three</td>
<td>Section Six</td>
<td>Section Seven</td>
</tr>
</table>
I think I have the mod function working properly which will place each XML element it processes into the appropriate column. However, what I can't get is how to wrap the <tr></tr> tags around each "section". The for-each loop definitely is causing too many <tr></tr> tags to be built. I was hoping someone could help me find a way to group the areas by the mod function or something to that effect. I have attached a sample XML output file and the XSL.
Any suggestions would be so very much appreciated.
Regards,
BoarderChic15
catanchorlinks.xsl
categoryanchorlinks.xml
|