webmasterbeta
New Member
Hi,
my HTML table is:
Username Action
Erick speak
John push
Following is my XSLT code:
<tr>
<td><a href=http://www.webdeveloper.com/forum/archive/index.php/"./user">User</a></td>
<td><a href="./user_action">Action</a></td>
</tr>
<xsl:for-each-group select="log_entry" group-by="@username">
<xsl:for-each-group select="current-group()" group-by="@action">
<xsl:sort select="@action"/>
<tr>
<td>
<xsl:value-of select="@username"/>
</td>
<td>
<xsl:value-of select="@action"/>
</td>
Now, the problem is, it is still sorting by "username" first and then by "action".
can anyone please tell me why is that so?
Thanks,
anki
my HTML table is:
Username Action
Erick speak
John push
Following is my XSLT code:
<tr>
<td><a href=http://www.webdeveloper.com/forum/archive/index.php/"./user">User</a></td>
<td><a href="./user_action">Action</a></td>
</tr>
<xsl:for-each-group select="log_entry" group-by="@username">
<xsl:for-each-group select="current-group()" group-by="@action">
<xsl:sort select="@action"/>
<tr>
<td>
<xsl:value-of select="@username"/>
</td>
<td>
<xsl:value-of select="@action"/>
</td>
Now, the problem is, it is still sorting by "username" first and then by "action".
can anyone please tell me why is that so?
Thanks,
anki