Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 3rd, 2004, 06:12 AM
Authorized User
Join Date: Sep 2004
Location: , , United Kingdom.
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default "Padding" a value in XSL

If I were to transform a value from one XML file to another is it possible to "pad" the value out so that it is a fixed length?

e.g If I had a value 12345 but it needed to be ten digits long, could you pad the beginning of it with zeros to make 0000012345?



Reply With Quote
  #2 (permalink)  
Old September 3rd, 2004, 07:56 AM
Authorized User
Join Date: Oct 2003
Location: , PA, USA.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts

I answered a similar question in 2002. From the archives:




Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
When to use Padding, Margin and Position? chobo2 CSS Cascading Style Sheets 1 May 29th, 2008 08:58 AM
Padding Zeros jmss66 Classic ASP Basics 5 January 28th, 2008 07:38 PM
Add padding zero to year Genuine Beginning PHP 2 August 6th, 2004 07:09 AM
padding problem anshul HTML Code Clinic 5 July 24th, 2004 11:11 PM

All times are GMT -4. The time now is 02:23 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.