Okay so I have this so far to create multiple tables.
<xsl:for-each select="report/issue">
<table id="@name" class="idwb sortable">
<tr>
<th class="center">Filename</th>
<th class="center">Level</th>
<th class="center">GID</th>
<th class="center">Message</th>
<th class="center">XPath</th>
<th class="center">Line Number</th>
<th class="center">Help</th>
</tr>
<!--xsl:sort select="@filename" order="descending" data-type="text" /-->
<tr onmouseover="this.style.backgroundColor='#f5f6be';"
onmouseout="this.style.backgroundColor= '';">
<xsl:attribute name="class">alt_0</xsl:attribute>
<td class="center">
<a href="{@infocenterURL}"><xsl:value-of select="@filename" /></a>
</td>
<td align="center">
<xsl:value-of select="@level" />
</td>
<td align="center">
<xsl:value-of select="@gid" />
</td>
<td align="center">
<xsl:value-of select="@message" />
</td>
<td align="center">
<xsl:value-of select="@xpath" />
</td>
<td align="center">
<xsl:value-of select="@linenum" />
</td>
<td alight="center">
<a href="{@helplink}">More</a>
</td>
</tr>
</table>
<br />
<br />
</xsl:for-each>
Nothing that's going to set the world on fire. The issue is this creates a table for every entry, but I want to only make tables for every filename and level and all the entries regarding that filename and level would go under there. Is there anyway to currently do this without using javascript?
XML Example
<issue filename="file.html"
gid="506"
helplink="www.somewhere.com"
infocenterURL="www.somewhere.com"
level="Potential Violation"
linenum="49"
message="stuff nneeds to happen"
xpath="/html/body/div[3]/img"/>
What I need to happen is that for every file name there is, I need a table with all the issues that match the same filename and the same violation level. The violation levels are fixed to 5 and I know all of them. But the file names are dynamic.