xsl-list
[Top] [All Lists]

RE: sort order="descending" question

2003-08-07 14:18:53
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



<Prev in Thread] Current Thread [Next in Thread>