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

Re: RE: Transformation for FO table widths

Subject: Re: RE: Transformation for FO table widths
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 29 Apr 2002 12:55:48 -0700 (PDT)
 Re: RE: Transformation for FO table widths
> What I do
> > next is to
> > sum up these values, like this:
> >
> >   <!-- Sum up percent values -->
> >   <xsl:variable name="percent-sum"
> >     select="sum(number(substring-before($percent-nodes, '%')))"/>
> 
> Summing over a computed expression is not easy in XSLT 1.0. There are
> various extension functions that do it in various products; or you
can
> create an RTF with nodes that contain the computed numbers and use 
> sum () over the nodes in that RTF, which requires the node-set 
> extension. The pure way is to use recursion; and no doubt Dimitre has

> an off-the-shelf dynamic template that does it. 

Mike is right -- do have a look at testTransform-and-sum.xsl from FXSL.

Cheers,
Dimitre Novatchev.

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.