xsl-list
[Top] [All Lists]

Re: sum function and math expressions

2005-04-08 03:19:33
omprakash(_dot_)v(_at_)polaris(_dot_)co(_dot_)in wrote:

Hi,
        Is it possible to evaluate a math expression in XSLT. GIven a
variable $pos, I would like to compute the value of

($pos+1) * $max-len and use it in an attribute thus

<td colspan="{expr}"> where expr is the result of evaluating above
expression.

 

yes, why not try it ?

<td colspan="{($pos+1)*$max-len}">

also for more advanced math check out

fxsl.sourceforge.net
or
exslt.org

some math related at XSLT FAQ
http://www.dpawson.co.uk/xsl/sect2/N5121.html

gl, Jim Fuller


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--