xsl-list
[Top] [All Lists]

[xsl] sorting on decimal

2009-05-15 14:34:21

I'm sorting a series of chapters based upon the chapter number. The numbering 
system is decimal:

3.9.1
3.9.2
3.9.3

and so on.

My problem is that when the base of one portion of the decimal rolls over, for 
example, when it goes:

3.9.9
3.9.10
3.9.11

The last two chapters are being sorted prior to 3.9.2.

I'm currently casting the sort key value to xsd:decimal

<xsl:sort select="xsd:decimal(@number)"  />

but it's not producing the desired sort order. What am I missing?

Thanks,

Don




      


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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