Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > sort

Reply
 
 
Shmuel
Guest
Posts: n/a
 
      09-05-2003
Is it possible to sort a table according to a heading (<th>) by cliking that
header?

If I have like this

NAME UNIT RATE
name1 unit1 rate1
name2 unti2 rate2
name3 unit3 rate3

Now if I click for example RATE it would sort them.
Is this possible with XSL ?



 
Reply With Quote
 
 
 
 
Dimitre Novatchev
Guest
Posts: n/a
 
      09-06-2003
Within the onclick event start an XSLT transformation passing to it as
parameter the name of the column, which is to be used for sorting.

A complete example can be found in Mike Kay's book.

See also:

http://dpawson.co.uk/xsl/sect2/N6461.html#d6859e950


=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL


"Shmuel" <> wrote in message
news:vx66b.3749$.. .
> Is it possible to sort a table according to a heading (<th>) by cliking

that
> header?
>
> If I have like this
>
> NAME UNIT RATE
> name1 unit1 rate1
> name2 unti2 rate2
> name3 unit3 rate3
>
> Now if I click for example RATE it would sort them.
> Is this possible with XSL ?
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: When will Thunderbird support sort in place (in context sort)? Ron Natalie Firefox 0 02-02-2006 04:38 AM
The Colourised Bewitched -- sort of OK....... sort of! anthony DVD Video 26 06-28-2005 04:39 AM
xsl:sort lang="es" modern vs. tradidional Spanish sort order nobody XML 0 06-01-2004 06:25 AM
What is faster? C++ vector sort or sort in database JerryJ C++ 11 04-28-2004 10:23 PM
Ado sort error-Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB. Navin ASP General 1 09-09-2003 07:16 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57