[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] sort order="descending" question


Subject: RE: [xsl] sort order="descending" question
From: "Jessica P. Hekman" <jphekman@xxxxxxxxxxxx>
Date: Thu, 7 Aug 2003 17:18:53 -0400 (EDT)

On Thu, 7 Aug 2003, Jeff Beadle wrote:

> By default the xsl:sort will treat the datatype of the @select as "text" ...
> you just need to define yours as "number".
> 
> The xsl:sort/@data-type attribute has two enumerations:  "text" and
> "number";
> 
> This should do the trick:
> 
>    <xsl:sort select="position()" order="descending" data-type="number"/>

That works perfectly.

Thanks so much; I feel like an idiot for not figuring that out.

Jessica



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread