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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<xsl:sort> - can i use two expressions?

Status
Not open for further replies.

Wickersty

Programmer
Nov 13, 2002
51
US
Hi. I'm wondering, can I perform an <xsl:sort> that examines two things?

IE - say I have a node like this:

<question chapter=&quot;1&quot; number=&quot;1&quot;/>

And there are dozens of these <questions> in the XML doc. I want to sort first by chapter, then - by number within chapter. So, all the questions from chapter &quot;1&quot; would be displayed, in order of &quot;number&quot;. I don't see any documenation RE: <xsl:sort> on how this could be accomplished.

Many thanks,

Jeff
 
<xsl:sort select=&quot;node&quot;>
attribute can't be sorted ,it must be the value of the node;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top