RE: [xsl] substring

Subject: RE: [xsl] substring
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 25 Feb 2005 21:17:42 -0000
> How can i pad an attribute value with (zeros) if the lenght 
> is less that a fixed length
> suppose i have
> <Rx rxNum="1234"> but when transforming it should be 10 
> digits with left padded 000 like
> <Rx rxNum="0000001234">
> but sometimes we may just get <Rx rxNum="23"/>

format-number(@rxNum, "0000000000")

Michael Kay

Current Thread