This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: String manipulation question
- From: Antonio Fiol Bonnín <fiol at w3ping dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 19 Jul 2002 14:44:36 +0200
- Subject: Re: [xsl] String manipulation question
- References: <60779EBEFA89D311859300105A420FFB3B2DCA@syndicate.synlog.co.uk>
- Reply-to: xsl-list at lists dot mulberrytech dot com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
|
|
|I'm having difficulties in thinking of a short and neat way of
appending '0'
|in front of any number between 1-9 (if its not already there).
|[And appending a '20' for a year format (if its not already there)].
|Any help appreciated.
A very simple way is using substrings of '00000000000'.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
iD8DBQE9OAm0CEvxyR+MqTQRAkF+AJ4zPDqjmuH2wCMK7XBUCimTqLJEngCfeP93
j+qr4grxvoQwardZ2PQ6Zrg=
=leaW
-----END PGP SIGNATURE-----
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list