xsl:sort select matches more than one

M

Michael Hamm

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
(e-mail address removed) Fine print:
http://www.math.wustl.edu/~msh210/ ... legal.html
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,833
Latest member
BettyeMacf

Latest Threads

Top