Click here to Skip to main content
15,924,317 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
C#
I want to display the items in an order such that the div which contains the maximum items should be displayed first and div which is empty should be placed in the end how to do it
Posted

1 solution

That should be quite easy to achieve: Use the Xsl Sort Tag[^]!

XML
<xsl:sort select="expression"
          lang="language-code"
          data-type="text|number|qname"
          order="ascending|descending"
          case-order="upper-first|lower-first"
/> 


and let the select be something like this:

XML
select = "count(node-expression-that selects-a-bunch-of-nodes)"


Regards,

Manfred
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900