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

Re: reccursive sum ?

Subject: Re: reccursive sum ?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 2 Mar 2004 18:22:05 GMT
reccursive
  The goal of all this transformation is to prevent using a variable, is it ?
  I find it's a lot to do (it has many consequences on the whole project) and
  don't see perfectly what the use of it.

why is it a lot to do? it just makes one variable which takes three or
four lines immediately before you call sum() as I showed in my post.


  document(concat($Meid,'.xml')

No, that makes the argument to document a string and you want it to be a
node set where each node has teh uri of a document, tehn document() will
load all the files in one go and sum() can take teh sum over all teh
files, as you requested.

If you don't do this, you'll ned to do a recursve template as I think
others have shown, which will certainly be a lot more code, it may or
may not be more efficient depending on implementation details of your
processor, however I'd guess usually it would be slower.

David



-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.