Subject: RE: returning a value with no preceding zeros
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Mon, 15 Mar 2004 15:58:23 -0000
|
> I want to test and attribute value and return only whole
> numbers For instance if the attribute is 001 I want the
> returned value to be just 1 if it is 002 value should be 2 and so on.
>
> Can any one give me a clue here?
Have a look at format-number(), you will need something like:
<xsl:value-of select="format-number(.,0)"/>
cheers
andrew
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|