This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: <xsl:sort> Q


mxmodi@duke-energy.com wrote:
> I have a simple sort Q. I am trying to sort numbers for a select box in
> ascending order. After running it through the  XSLT processor, what I do
> get is a sort, however, it is sorting based on the first digit of the
> number. By doing so, it considers the number "3" to be greater than the
> number "27". How do I avert this sorting? 

http://www.w3.org/TR/xslt#sorting

<xsl:sort select="ID" data-type="number"/>

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at         My XML/XSL resources:
webb.net in Denver, Colorado, USA           http://www.skew.org/xml/


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]