Re: [xsl] Eliminating leading zeros

Subject: Re: [xsl] Eliminating leading zeros
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 21 Aug 2006 15:10:30 +0100
> 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

Current Thread