sort

Discussion in 'XML' started by Shmuel, Sep 5, 2003.

  1. Shmuel

    Shmuel Guest

    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 ?
    Shmuel, Sep 5, 2003
    #1
    1. Advertising

  2. 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 ?
    >
    >
    >
    Dimitre Novatchev, Sep 6, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nobody
    Replies:
    0
    Views:
    528
    nobody
    Jun 1, 2004
  2. JerryJ
    Replies:
    11
    Views:
    1,384
    Dave Moore
    Apr 28, 2004
  3. John Black
    Replies:
    6
    Views:
    2,042
    John Harrison
    May 28, 2004
  4. Angus Comber
    Replies:
    7
    Views:
    1,142
    Richard Heathfield
    Feb 5, 2004
  5. Navin
    Replies:
    1
    Views:
    668
    Ken Schaefer
    Sep 9, 2003
Loading...

Share This Page