Re: [xsl] Sort By Multiple Values?

Subject: Re: [xsl] Sort By Multiple Values?
From: Alice Wei <ajwei@xxxxxxxxxxx>
Date: Thu, 27 Dec 2007 13:28:38 -0500

Sorry, I have messed up my previous document in the cut and paste. Here is the "correct" document.

I have a document here where I am attempting to sort it using multiple values. Here is the XML:

               <ability rank="1">XML 1.0</ability>
               <ability rank="1">XSLT 1.0</ability>
               <ability rank="2">XSLT 2.0</ability>
               <ability rank="1">HTML 4.01 / XHTML 1.0</ability>
               <ability rank="1">CSS</ability>

The XSL:

  <xsl:template match="computer">
  [<span class="skills">
                       <xsl:apply-templates select="language">
                           <xsl:sort select="@rank" order="ascending"/>

The output now is in the same order as it is in the order of the
document w= hen the @rank value is 1, and followed by the one where

[XML 1.0] [XSLT 1.0] [HTML 4.01/XHTML 1.0] [CSS] [XSLT 2.0].

Is it possible that I can get it to display as

[CSS] [HTML 4.01/XHTML 1.0] [XML 1.0] [XSLT 1.0] [XSLT 2.0]


Thanks to those who can help.

Alice Wei
MIS 2008
School of Library and Information Science
Indiana University Bloomington

Current Thread