Re: Eliminating leading zeros
> If you don't know how many leading zeros there may be (but I guess > you know, because you add them yourself), oh I missed that. If the input is under your control then you can make it look like <stuff><padding>000</padding>5 (foo)</stuff> <stuff><padding>00</padding>15 (bar)</stuff> ... sorting on "stuff" will work the same way (as the string value of stuff is unaffected by adding the padding markup, and then to render the contents you use apply-templates together with <xsl:template match="padding"/> David
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format