xsl:sort select matches more than one

Discussion in 'XML' started by Michael Hamm, Nov 15, 2006.

  1. Michael Hamm

    Michael Hamm Guest

    I'd like to sort items in an XML file using XSLT. Say I have

    <item><n>Jefferson</n><n>Hancock</n><foo>bar</foo></item>
    <item><n>Washington</n><foo>baz</foo></item>
    <item><n>Madison</n><n>Adams</n><n>Hamilton</n><foo>blah</foo></item>

    and I want to sort the items on the alphabetically first n; i.e., since
    Adams is first alphabetically, I want the third item first, etc. Is there
    a way to do this?

    Thanks,

    Michael Hamm
    AM, Math, Wash. U. St. Louis
    Fine print:
    http://www.math.wustl.edu/~msh210/ ... legal.html
     
    Michael Hamm, Nov 15, 2006
    #1
    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. jack
    Replies:
    3
    Views:
    1,674
    Roberto =?ISO-8859-15?Q?D=EDaz?=
    Jun 5, 2004
  2. Replies:
    2
    Views:
    9,307
    Martin Honnen
    Sep 5, 2006
  3. Merciadri Luca
    Replies:
    4
    Views:
    835
  4. Steven D'Aprano
    Replies:
    0
    Views:
    116
    Steven D'Aprano
    Dec 23, 2013
  5. Replies:
    3
    Views:
    98
    Gary Herron
    Dec 23, 2013
Loading...

Share This Page