Forum Moderators: open

Message Too Old, No Replies

Sorting problem in XSLT

         

yuppieyash

2:47 pm on Jun 29, 2005 (gmt 0)

10+ Year Member



Hi,

my HTML table is:

Username Action

Erick speak
John push

Following is my XSLT code:

<tr>
<td><a href="./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,
YY