Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cascading sort of 2 (or more) nodes

Status
Not open for further replies.

gorgonz

Technical User
Jan 9, 2004
5
DE
its no problem to do a simple sort of ONE node (author).
Just use <xsl:sort select=&quot;(node)&quot; ...>

I want to handle the situation, that there might be several entries (author) with the same node value. How can I tell a second sort condition to order those equal ones? criteria could be another node (title).

example database with first node author and second node title:

<books>
<book>
<author>Miller</author>
<title>Middle Book</title>
</book>
<book>
<author>Miller</author>
<title>Z, the last Book</title>
</book>
<book>
<author>Miller</author>
<title>A Starter Book</title>
</book>
</books>

thx in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top