Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 3rd, 2004, 06:12 AM
Authorized User
Join Date: Sep 2004
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?



Old September 3rd, 2004, 07:56 AM
Authorized User
Join Date: Oct 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts

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




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

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.