Subject: Re: [xsl] HTML sortable columns From: John <john-xsl-list@xxxxxxxx> Date: Thu, 21 Oct 2004 07:28:49 -0700 |
<table> <row> <column sortid="1">value</column> <column sortid="2">value</column> </row> <row> <column sortid="1">value</column> <column sortid="2">value</column> </row> </table>
<xsl:for-each select="/table/row/column[@sortid=$sortid"]> <xsl:sort select="text()" /> <xsl:call-template name="row" /> </xsl:for-each>
Hi,
I'm actually asking this question "for a friend".
In the generic context of some application/webserver, does anyone have any XSL suggestions or examples for presenting a table (generated from XML data) with headers that let the users sort the data by different columns?
The solution is partially out of scope for XSLT. Your friend can implement sorting by retransforming the source and passing the sort key name as a parameter, but they need to write non-XSLT code to handle the retransform requests, be it e.g. Java at server-side and ECMAScript at browser-side.
Cheers,
Jarno - VNV Nation: Honour (Juno version)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] HTML sortable columns, Jarno.Elovirta | Thread | Re: [xsl] HTML sortable columns, Wendell Piez |
RE: [xsl] Getting a difinitive answ, Jarno.Elovirta | Date | [xsl] IE Mimeviewer rendered useles, Finstad, Franco |
Month |