[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: sum function and math expressions

Subject: Re: sum function and math expressions
From: James Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Fri, 08 Apr 2005 12:19:33 +0200
math express
omprakash.v@xxxxxxxxxxxxx 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.