xsl-list
[Top] [All Lists]

Re: [xsl] Eliminating leading zeros

2006-08-21 07:10:51

Yes I am using XSLT2 

if you don't mind limiting to saxon then an alternative to adding
padding 0s and then removing them is just to sort using the alphanumeric
sorting collation which sorts numbers as numbers and other things as
strings:

http://www.saxonica.com/documentation/extensions/instructions/collation.html

--~------------------------------------------------------------------
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>
--~--