This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: String manipulation question


Hi Bodrul,

> 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).

Use the format-number() function:

  format-number($number, '00')

> [And appending a '20' for a year format (if its not already there)].

I'm sure David C. will come up with something neat.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]