How to sort by hexadecimals in xslt?

Posted by fielding on Stack Overflow See other posts from Stack Overflow or by fielding
Published on 2010-06-14T12:29:07Z Indexed on 2010/06/14 12:32 UTC
Read the original article Hit count: 195

Filed under:
|
|
|
|

Hi, im trying to sort my transformed output by a element which contains a hex value.

<xsl:sort select="Generation/Sirio/Code" data-type="number"/>

Values are plain old Hex: 00 01 02 ... 0A ... FF but they are getting sorted like that: 0A FF 00 01 02, which indicates the sorting method fails as soon as there are character involved.

How can i work around this?

Thank you very much!

© Stack Overflow or respective owner

Related posts about xslt

Related posts about xsl