CUSTOM SORT XSL ?

Posted by Nanda on Stack Overflow See other posts from Stack Overflow or by Nanda
Published on 2009-10-21T08:34:50Z Indexed on 2010/04/12 12:03 UTC
Read the original article Hit count: 260

Filed under:
|
|

Hi

This is my XML Structure like this

input :-

<MYDATA>
     <DETAILS>
       <DESCRIPTION>EASE</DESCRIPTION>
     </DETAILS>

     <DETAILS>
       <DESCRIPTION>COMPLEX</DESCRIPTION>
     </DETAILS>

     <DETAILS>
       <DESCRIPTION>SIMPLE</DESCRIPTION>
     </DETAILS>
</MYDATA>

I want to display like this using xsl sort it mean custom sort i want to display firts simple second ease and third complex

Output :-

<MYDATA>

     <DETAILS>
       <DESCRIPTION>SIMPLE</DESCRIPTION>
     </DETAILS>


     <DETAILS>
       <DESCRIPTION>EASE</DESCRIPTION>
     </DETAILS>

     <DETAILS>
       <DESCRIPTION>COMPLEX</DESCRIPTION>
     </DETAILS>

        </MYDATA>

© Stack Overflow or respective owner

Related posts about xsl

Related posts about xslt