Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Adding leading zeros Adding leading zerosTo: NULL Date: 10/3/2005 6:28:00 PM I have a xml files that looks something like this:
<Customers>
<Customer>
<CustomerNo>123</CustomerNo>
<Balance>10.25</Balance>
</Customer>
</Customers>
I would like to transform this into a flat file with fixed column lengths.
Positon 1-5 is customer no (5 characters)
Position 6-15 is balance. (10 characters)
The columns should have leading zeros or spaces to fill up the columns. Like
this:
1230000010.25 (starting with 2 spaces)
I would like to use a xslt to transform this structure to a flat file with
fixed with columns.
My problem is that I'm not quite sure how to insert the leading zeros and
spaces.
Can anybody please help me with this?
Best regards,
Henrik
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
