This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Beginner's question: Mathematical Calculations in XSL Template
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 21 Nov 2001 18:26:18 GMT
- Subject: Re: [xsl] Beginner's question: Mathematical Calculations in XSL Template
- References: <000001c172a0$ddff1460$2c00a8c0@amiy> <3BFBEC1E.DC3709D9@ucdhep.ucdavis.edu>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> wouldn't number('abc1') return NaN
Ami,
<xsl:value-of select="number(one)
if you expected number('abc1') then it doesn't. you could use
translate(one.'abc','') to get rid of those letters, or
substring(one,4) to ignore the first three characters.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list