xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] sum function and math expressions


Subject: Re: [xsl] sum function and math expressions
From: James Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Fri, 08 Apr 2005 12:19:33 +0200

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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor