[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] returning a value with no preceding zeros
Subject: RE: [xsl] returning a value with no preceding zeros From: "Norma Yeazell" <Nyeazell@xxxxxxxxx> Date: Tue, 16 Mar 2004 08:55:46 -0500 |
Thanks to all for the info I used this modified -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Andrew Welch Sent: Monday, March 15, 2004 10:58 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] returning a value with no preceding zeros > 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 Confidentiality Notice The information contained in this e-mail is confidential and intended for use only by the person(s) or organization listed in the address. If you have received this communication in error, please contact the sender at O'Neil & Associates, Inc., immediately. Any copying, dissemination, or distribution of this communication, other than by the intended recipient, is strictly prohibited. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] returning a value with no, Pieter Reint Siegers | Thread | [xsl] XSL Transformation, Jim Han |
Re: [xsl] XML -> RTF via XSL, George Cristian Bina | Date | [xsl] Omnimark vs. XSL (Saxon) Chal, Michael Müller-Hille |
Month |