[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Eliminating leading zeros

Subject: Re: Eliminating leading zeros
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 21 Aug 2006 14:57:58 +0100
eliminating stuff
>   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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.